From dbbf71788d5cf0a44ad4cea9d64f2383e7352a65 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 --- libbitdht/src/bitdht/bdpeer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbitdht/src/bitdht/bdpeer.cc b/libbitdht/src/bitdht/bdpeer.cc index e07fcdff5..d6af6a60d 100644 --- a/libbitdht/src/bitdht/bdpeer.cc +++ b/libbitdht/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))