mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-07 22:02:32 -04:00
fixed 2 uninitialized memory read
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8441 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3f9180b999
commit
3eb673dc53
2 changed files with 3 additions and 3 deletions
|
@ -218,7 +218,8 @@ int p3BitDht::addBadPeer(const struct sockaddr_storage &addr, uint32_t /*reason*
|
||||||
|
|
||||||
int p3BitDht::addKnownPeer(const RsPeerId &pid, const struct sockaddr_storage &addr, uint32_t flags)
|
int p3BitDht::addKnownPeer(const RsPeerId &pid, const struct sockaddr_storage &addr, uint32_t flags)
|
||||||
{
|
{
|
||||||
struct sockaddr_in addrv4;
|
struct sockaddr_in addrv4;
|
||||||
|
sockaddr_clear(&addrv4);
|
||||||
|
|
||||||
if (addr.ss_family != AF_INET)
|
if (addr.ss_family != AF_INET)
|
||||||
{
|
{
|
||||||
|
@ -227,7 +228,6 @@ int p3BitDht::addKnownPeer(const RsPeerId &pid, const struct sockaddr_storage &a
|
||||||
std::cerr << "p3BitDht::addKnownPeer() Warning! Non IPv4 Address - Cannot handle IPV6 Yet. addr.ss_family=" << addr.ss_family;
|
std::cerr << "p3BitDht::addKnownPeer() Warning! Non IPv4 Address - Cannot handle IPV6 Yet. addr.ss_family=" << addr.ss_family;
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
}
|
}
|
||||||
sockaddr_clear(&addrv4);
|
|
||||||
|
|
||||||
if (flags & NETASSIST_KNOWN_PEER_ONLINE)
|
if (flags & NETASSIST_KNOWN_PEER_ONLINE)
|
||||||
{
|
{
|
||||||
|
|
|
@ -795,7 +795,7 @@ bool RsCollectionDialog::addAllChild(QFileInfo &fileInfoParent
|
||||||
*/
|
*/
|
||||||
void RsCollectionDialog::remove()
|
void RsCollectionDialog::remove()
|
||||||
{
|
{
|
||||||
bool removeOnlyFile;
|
bool removeOnlyFile=false;
|
||||||
QString listDir;
|
QString listDir;
|
||||||
// First, check if selection contains directories
|
// First, check if selection contains directories
|
||||||
for (int curs = 0; curs < ui._fileEntriesTW->selectedItems().count(); ++curs)
|
for (int curs = 0; curs < ui._fileEntriesTW->selectedItems().count(); ++curs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue