- test properly
authorSree Harsha Totakura <totakura@in.tum.de>
Wed, 8 Jan 2014 21:16:41 +0000 (21:16 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Wed, 8 Jan 2014 21:16:41 +0000 (21:16 +0000)
src/transport/test_transport_api_blacklisting.c

index 7186d1b3f35be90e6fa7e35bb3ebbea01644ee89..146e3477b25371589c0105075e8bbf4a6d789225 100644 (file)
@@ -282,6 +282,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
   struct PeerContext *p = cls;
   struct PeerContext *t = NULL;
 
+  connected = GNUNET_YES;
   if (0 == memcmp (peer, &p1->id, sizeof (struct GNUNET_PeerIdentity)))
     t = p1;
   if (0 == memcmp (peer, &p2->id, sizeof (struct GNUNET_PeerIdentity)))
@@ -320,6 +321,7 @@ testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
   cc = NULL;
   char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
 
+  connected = GNUNET_YES;
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
               p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
   GNUNET_free (p1_c);