aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-04 12:09:34 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-04 12:09:34 +0000
commit139942e2d206991d6dce4b5545fd2c79141e6c52 (patch)
treeff1da5df47e2631291d54ddde0817b101b824cff /src/integration-tests
parentf067060a4ae63d6570e63db8ecb9d645f61c9ad4 (diff)
downloadgnunet-139942e2d206991d6dce4b5545fd2c79141e6c52.tar.gz
gnunet-139942e2d206991d6dce4b5545fd2c79141e6c52.zip
- coverity
Diffstat (limited to 'src/integration-tests')
-rw-r--r--src/integration-tests/connection_watchdog.c5
1 files changed, 4 insertions, 1 deletions
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,
869 869
870 pc = GNUNET_CONTAINER_multihashmap_get(peers, &peer->hashPubKey); 870 pc = GNUNET_CONTAINER_multihashmap_get(peers, &peer->hashPubKey);
871 871
872 if ((NULL == pc) && (0 != memcmp (peer, &my_peer_id, sizeof (my_peer_id)))) 872 if (NULL == pc)
873 { 873 {
874 if (0 == memcmp (peer, &my_peer_id, sizeof (my_peer_id)))
875 return GNUNET_OK;
876
874 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected message type %u from unknown peer `%s'\n", 877 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected message type %u from unknown peer `%s'\n",
875 ntohs (message->type), 878 ntohs (message->type),
876 GNUNET_i2s (peer)); 879 GNUNET_i2s (peer));