projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[oweals/gnunet.git]
/
src
/
core
/
test_core_quota_compliance.c
diff --git
a/src/core/test_core_quota_compliance.c
b/src/core/test_core_quota_compliance.c
index 7181564d815ecd0c39b025d5a2576496d2fce699..d951113fc908c14dd4a99ea4e72cd4f9bb126286 100644
(file)
--- a/
src/core/test_core_quota_compliance.c
+++ b/
src/core/test_core_quota_compliance.c
@@
-370,6
+370,10
@@
connect_notify (void *cls,
{
struct PeerContext *pc = cls;
{
struct PeerContext *pc = cls;
+ if (0 == memcmp (&pc->id,
+ peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return;
GNUNET_assert (pc->connect_status == 0);
pc->connect_status = 1;
if (pc == &p1)
GNUNET_assert (pc->connect_status == 0);
pc->connect_status = 1;
if (pc == &p1)
@@
-405,6
+409,11
@@
disconnect_notify (void *cls,
const struct GNUNET_PeerIdentity *peer)
{
struct PeerContext *pc = cls;
const struct GNUNET_PeerIdentity *peer)
{
struct PeerContext *pc = cls;
+
+ if (0 == memcmp (&pc->id,
+ peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return;
pc->connect_status = 0;
#if DEBUG_TRANSMISSION
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
pc->connect_status = 0;
#if DEBUG_TRANSMISSION
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,