gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21267 - gnunet/src/integration-tests


From: gnunet
Subject: [GNUnet-SVN] r21267 - gnunet/src/integration-tests
Date: Fri, 4 May 2012 14:09:34 +0200

Author: wachs
Date: 2012-05-04 14:09:34 +0200 (Fri, 04 May 2012)
New Revision: 21267

Modified:
   gnunet/src/integration-tests/connection_watchdog.c
Log:
- coverity


Modified: gnunet/src/integration-tests/connection_watchdog.c
===================================================================
--- gnunet/src/integration-tests/connection_watchdog.c  2012-05-04 11:54:37 UTC 
(rev 21266)
+++ gnunet/src/integration-tests/connection_watchdog.c  2012-05-04 12:09:34 UTC 
(rev 21267)
@@ -869,8 +869,11 @@
 
   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));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]