diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-04-07 14:14:40 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-04-07 14:14:40 +0000 |
commit | 2136ee822810c9d7453242f98371abaa6ba5d7d1 (patch) | |
tree | 189105cca750ceb1227d77e4fd557421f220ff39 /src | |
parent | d6a31e705d945f6d07ebab2859151fb03c8444f0 (diff) | |
download | gnunet-2136ee822810c9d7453242f98371abaa6ba5d7d1.tar.gz gnunet-2136ee822810c9d7453242f98371abaa6ba5d7d1.zip |
- fix coverity 12989
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh_peer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c index 25962b618..607012741 100644 --- a/src/mesh/gnunet-service-mesh_peer.c +++ b/src/mesh/gnunet-service-mesh_peer.c | |||
@@ -1241,11 +1241,13 @@ struct GNUNET_MessageHeader * | |||
1241 | GMP_connection_pop (struct MeshPeer *peer, struct MeshConnection *c) | 1241 | GMP_connection_pop (struct MeshPeer *peer, struct MeshConnection *c) |
1242 | { | 1242 | { |
1243 | struct MeshPeerQueue *q; | 1243 | struct MeshPeerQueue *q; |
1244 | struct MeshPeerQueue *next; | ||
1244 | struct GNUNET_MessageHeader *msg; | 1245 | struct GNUNET_MessageHeader *msg; |
1245 | 1246 | ||
1246 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection pop on %s\n", GMC_2s (c)); | 1247 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection pop on %s\n", GMC_2s (c)); |
1247 | for (q = peer->queue_head; NULL != q; q = q->next) | 1248 | for (q = peer->queue_head; NULL != q; q = next) |
1248 | { | 1249 | { |
1250 | next = q->next; | ||
1249 | if (q->c != c) | 1251 | if (q->c != c) |
1250 | continue; | 1252 | continue; |
1251 | switch (q->type) | 1253 | switch (q->type) |