diff options
-rw-r--r-- | src/testing/testing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 0204f311b4..dd4b92a1b7 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -1462,7 +1462,7 @@ connect_notify (void *cls, { struct ConnectContext *ctx = cls; - if (memcmp (&ctx->d2->id, peer, sizeof (struct GNUNET_PeerIdentity)) == 0) + if (0 == memcmp (&ctx->d2->id, peer, sizeof (struct GNUNET_PeerIdentity))) { ctx->connected = GNUNET_YES; ctx->distance = 0; /* FIXME: distance */ |