From 139942e2d206991d6dce4b5545fd2c79141e6c52 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 4 May 2012 12:09:34 +0000 Subject: [PATCH] - coverity --- src/integration-tests/connection_watchdog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/integration-tests/connection_watchdog.c b/src/integration-tests/connection_watchdog.c index 215d045ab..00da55eee 100644 --- a/src/integration-tests/connection_watchdog.c +++ b/src/integration-tests/connection_watchdog.c @@ -869,8 +869,11 @@ core_notify_receive_cb (void *cls, pc = GNUNET_CONTAINER_multihashmap_get(peers, &peer->hashPubKey); - if ((NULL == pc) && (0 != memcmp (peer, &my_peer_id, sizeof (my_peer_id)))) + if (NULL == pc) { + if (0 == memcmp (peer, &my_peer_id, sizeof (my_peer_id))) + return GNUNET_OK; + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected message type %u from unknown peer `%s'\n", ntohs (message->type), GNUNET_i2s (peer)); -- 2.25.1