From 22df753b106eab2f7df66cc3bc2d8dc49920eb39 Mon Sep 17 00:00:00 2001 From: drbob Date: Wed, 29 Sep 2010 22:53:49 +0000 Subject: [PATCH] * BUGFIX. bdId comparison was wrong... fixed. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3565 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- src/bitdht/bdpeer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitdht/bdpeer.cc b/src/bitdht/bdpeer.cc index e07fcdf..d6af6a6 100644 --- a/src/bitdht/bdpeer.cc +++ b/src/bitdht/bdpeer.cc @@ -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))