diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-09 11:27:27 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-09 11:27:27 +0000 |
commit | 02b7453eb64ef79063401c98ad1773a4011dc913 (patch) | |
tree | a725770b4c5eb8e6e415db77b71afea9de36512d /src/transport/test_transport_api_bidirectional_connect.c | |
parent | 355641eae5d8f883d387d2dd4283200f91402a6a (diff) | |
download | gnunet-02b7453eb64ef79063401c98ad1773a4011dc913.tar.gz gnunet-02b7453eb64ef79063401c98ad1773a4011dc913.zip |
fixing coverity issue
Diffstat (limited to 'src/transport/test_transport_api_bidirectional_connect.c')
-rw-r--r-- | src/transport/test_transport_api_bidirectional_connect.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport/test_transport_api_bidirectional_connect.c b/src/transport/test_transport_api_bidirectional_connect.c index a60a91fe1..f8b177fb3 100644 --- a/src/transport/test_transport_api_bidirectional_connect.c +++ b/src/transport/test_transport_api_bidirectional_connect.c | |||
@@ -144,12 +144,11 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
144 | GNUNET_assert (t != NULL); | 144 | GNUNET_assert (t != NULL); |
145 | 145 | ||
146 | char *ps = GNUNET_strdup (GNUNET_i2s (&p->id)); | 146 | char *ps = GNUNET_strdup (GNUNET_i2s (&p->id)); |
147 | |||
148 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 147 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
149 | "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", | 148 | "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", |
150 | p->no, ps, ntohs (message->type), ntohs (message->size), t->no, | 149 | p->no, ps, ntohs (message->type), ntohs (message->size), t->no, |
151 | GNUNET_i2s (&t->id)); | 150 | GNUNET_i2s (&t->id)); |
152 | 151 | GNUNET_free (ps); | |
153 | if ((MTYPE == ntohs (message->type)) && | 152 | if ((MTYPE == ntohs (message->type)) && |
154 | (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size))) | 153 | (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size))) |
155 | { | 154 | { |