nicer
authorChristian Grothoff <christian@grothoff.org>
Fri, 11 Jun 2010 21:38:09 +0000 (21:38 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 11 Jun 2010 21:38:09 +0000 (21:38 +0000)
src/topology/gnunet-daemon-topology.c

index cfe1a66e849d6c534cde2e20510fc6ae29995e54..8c31fea58b0124ffddbe0a149cef1c630349a7fe 100644 (file)
@@ -867,7 +867,11 @@ consider_for_advertising (const struct GNUNET_HELLO_Message *hello)
   struct Peer *peer;
   uint16_t size;
 
-  GNUNET_break (GNUNET_OK == GNUNET_HELLO_get_id (hello, &pid));
+  if (GNUNET_OK != GNUNET_HELLO_get_id (hello, &pid))
+    {
+       GNUNET_break (0);
+       return;
+    }
   if (0 == memcmp (&pid,
                   &my_identity,
                   sizeof (struct GNUNET_PeerIdentity)))