diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-18 16:31:08 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-18 16:31:08 +0000 |
commit | 8f91676bbbc14224bfc5cec98509f84794927f0b (patch) | |
tree | 30a0141427e153845b5ac6400d45d6e0746f529c /src/transport/test_transport_api.c | |
parent | 1698944df8b50f470aa8dc6860329a9d43542fcc (diff) | |
download | gnunet-8f91676bbbc14224bfc5cec98509f84794927f0b.tar.gz gnunet-8f91676bbbc14224bfc5cec98509f84794927f0b.zip |
coverity fixes
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r-- | src/transport/test_transport_api.c | 2 |
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", |