diff options
Diffstat (limited to 'src/core/test_core_api_reliability.c')
-rw-r--r-- | src/core/test_core_api_reliability.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index 9192c9592..7eab92b12 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -221,6 +221,10 @@ connect_notify (void *cls, | |||
221 | { | 221 | { |
222 | struct PeerContext *pc = cls; | 222 | struct PeerContext *pc = cls; |
223 | 223 | ||
224 | if (0 == memcmp (&pc->id, | ||
225 | peer, | ||
226 | sizeof (struct GNUNET_PeerIdentity))) | ||
227 | return; | ||
224 | GNUNET_assert (pc->connect_status == 0); | 228 | GNUNET_assert (pc->connect_status == 0); |
225 | pc->connect_status = 1; | 229 | pc->connect_status = 1; |
226 | if (pc == &p1) | 230 | if (pc == &p1) |
@@ -252,6 +256,11 @@ disconnect_notify (void *cls, | |||
252 | const struct GNUNET_PeerIdentity *peer) | 256 | const struct GNUNET_PeerIdentity *peer) |
253 | { | 257 | { |
254 | struct PeerContext *pc = cls; | 258 | struct PeerContext *pc = cls; |
259 | |||
260 | if (0 == memcmp (&pc->id, | ||
261 | peer, | ||
262 | sizeof (struct GNUNET_PeerIdentity))) | ||
263 | return; | ||
255 | pc->connect_status = 0; | 264 | pc->connect_status = 0; |
256 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 265 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
257 | "Encrypted connection to `%4s' cut\n", GNUNET_i2s (peer)); | 266 | "Encrypted connection to `%4s' cut\n", GNUNET_i2s (peer)); |