mirror of
https://github.com/RetroShare/BitDHT.git
synced 2026-09-13 18:45:46 +05:00
* BUGFIX. bdId comparison was wrong... fixed.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3565 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
adccfc29ef
commit
22df753b10
@ -156,8 +156,8 @@ int operator==(const bdNodeId &a, const bdNodeId &b)
|
||||
|
||||
int operator==(const bdId &a, const bdId &b)
|
||||
{
|
||||
if (a.id == b.id)
|
||||
return 1;
|
||||
if (!(a.id == b.id))
|
||||
return 0;
|
||||
|
||||
if ((a.addr.sin_addr.s_addr == b.addr.sin_addr.s_addr) &&
|
||||
(a.addr.sin_port == b.addr.sin_port))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user