gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24273 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r24273 - gnunet/src/mesh
Date: Thu, 11 Oct 2012 18:19:50 +0200

Author: bartpolot
Date: 2012-10-11 18:19:50 +0200 (Thu, 11 Oct 2012)
New Revision: 24273

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
- initialize pid for case of error

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2012-10-11 16:19:02 UTC (rev 
24272)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2012-10-11 16:19:50 UTC (rev 
24273)
@@ -5742,6 +5742,7 @@
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " of type %s\n",
               GNUNET_MESH_DEBUG_M2S (ntohs (msg[1].header.type)));
   t = tunnel_get (&msg->oid, ntohl (msg->tid));
+  pid = ntohl (msg->pid);
 
   if (NULL == t)
   {
@@ -5754,7 +5755,6 @@
     return GNUNET_OK;
   }
 
-  pid = ntohl (msg->pid);
   if (t->bck_pid == pid)
   {
     /* already seen this packet, drop */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]