- coverity
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 4 May 2012 12:09:34 +0000 (12:09 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 4 May 2012 12:09:34 +0000 (12:09 +0000)
src/integration-tests/connection_watchdog.c

index 215d045ab2465431ffa43cc7feb6312e8be60229..00da55eeef5c7d86414e1a75af0aa29425a61ca4 100644 (file)
@@ -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));