aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-10-11 16:19:50 +0000
committerBart Polot <bart@net.in.tum.de>2012-10-11 16:19:50 +0000
commita051ae50ffe94ee02bfee5f60656bfbd582aa67b (patch)
treea0c983e3aecabc3d7f57aa70016694f76a415fa5 /src/mesh/gnunet-service-mesh.c
parent1d116671d2464dcf0bdbab9671be02bde339068a (diff)
downloadgnunet-a051ae50ffe94ee02bfee5f60656bfbd582aa67b.tar.gz
gnunet-a051ae50ffe94ee02bfee5f60656bfbd582aa67b.zip
- initialize pid for case of error
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r--src/mesh/gnunet-service-mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 006cc3b38..506cb9d20 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -5742,6 +5742,7 @@ handle_mesh_data_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer,
5742 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " of type %s\n", 5742 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " of type %s\n",
5743 GNUNET_MESH_DEBUG_M2S (ntohs (msg[1].header.type))); 5743 GNUNET_MESH_DEBUG_M2S (ntohs (msg[1].header.type)));
5744 t = tunnel_get (&msg->oid, ntohl (msg->tid)); 5744 t = tunnel_get (&msg->oid, ntohl (msg->tid));
5745 pid = ntohl (msg->pid);
5745 5746
5746 if (NULL == t) 5747 if (NULL == t)
5747 { 5748 {
@@ -5754,7 +5755,6 @@ handle_mesh_data_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer,
5754 return GNUNET_OK; 5755 return GNUNET_OK;
5755 } 5756 }
5756 5757
5757 pid = ntohl (msg->pid);
5758 if (t->bck_pid == pid) 5758 if (t->bck_pid == pid)
5759 { 5759 {
5760 /* already seen this packet, drop */ 5760 /* already seen this packet, drop */