aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r--src/transport/test_transport_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index 81a0b39e1..6b6cc0c0e 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -150,6 +150,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
150 t = p1; 150 t = p1;
151 if (0 == memcmp (peer, &p2->id, sizeof (struct GNUNET_PeerIdentity))) 151 if (0 == memcmp (peer, &p2->id, sizeof (struct GNUNET_PeerIdentity)))
152 t = p2; 152 t = p2;
153 GNUNET_assert (t != NULL);
153 154
154 char * ps = strdup (GNUNET_i2s(&p->id)); 155 char * ps = strdup (GNUNET_i2s(&p->id));
155 156
@@ -245,6 +246,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
245 t = p1; 246 t = p1;
246 if (0 == memcmp (peer, &p2->id, sizeof (struct GNUNET_PeerIdentity))) 247 if (0 == memcmp (peer, &p2->id, sizeof (struct GNUNET_PeerIdentity)))
247 t = p2; 248 t = p2;
249 GNUNET_assert (t!=NULL);
248 250
249 char * ps = strdup (GNUNET_i2s(&p->id)); 251 char * ps = strdup (GNUNET_i2s(&p->id));
250 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", 252 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer %u (`%4s'): peer %u (`%s') connected to me!\n",