summaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-18 16:31:08 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-18 16:31:08 +0000
commit8f91676bbbc14224bfc5cec98509f84794927f0b (patch)
tree30a0141427e153845b5ac6400d45d6e0746f529c /src/transport/test_transport_api.c
parent1698944df8b50f470aa8dc6860329a9d43542fcc (diff)
coverity fixes
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,
t = p1;
if (0 == memcmp (peer, &p2->id, sizeof (struct GNUNET_PeerIdentity)))
t = p2;
+ GNUNET_assert (t != NULL);
char * ps = strdup (GNUNET_i2s(&p->id));
@@ -245,6 +246,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
t = p1;
if (0 == memcmp (peer, &p2->id, sizeof (struct GNUNET_PeerIdentity)))
t = p2;
+ GNUNET_assert (t!=NULL);
char * ps = strdup (GNUNET_i2s(&p->id));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer %u (`%4s'): peer %u (`%s') connected to me!\n",