gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r30750 - gnunet/src/mesh
Date: Sat, 16 Nov 2013 18:59:13 +0100

Author: grothoff
Date: 2013-11-16 18:59:13 +0100 (Sat, 16 Nov 2013)
New Revision: 30750

Modified:
   gnunet/src/mesh/mesh_api.c
Log:
-return after handler was found, as handler might have destroyed the mesh 
handle already

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2013-11-16 17:51:32 UTC (rev 30749)
+++ gnunet/src/mesh/mesh_api.c  2013-11-16 17:59:13 UTC (rev 30750)
@@ -881,13 +881,13 @@
   unsigned int i;
   uint16_t type;
 
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "Got a data message!\n");
-
+  LOG (GNUNET_ERROR_TYPE_DEBUG,
+       "Got a data message!\n");
   dmsg = (struct GNUNET_MESH_LocalData *) message;
-
   ch = retrieve_channel (h, ntohl (dmsg->id));
   payload = (struct GNUNET_MessageHeader *) &dmsg[1];
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "  %s data on channel %s [%X]\n",
+  LOG (GNUNET_ERROR_TYPE_DEBUG,
+       "  %s data on channel %s [%X]\n",
        ch->chid >= GNUNET_MESH_LOCAL_CHANNEL_ID_SERV ? "fwd" : "bck",
        GNUNET_i2s (GNUNET_PEER_resolve2 (ch->peer)), ntohl (dmsg->id));
   if (NULL == ch)
@@ -917,6 +917,7 @@
       {
         LOG (GNUNET_ERROR_TYPE_DEBUG,
              "callback completed successfully\n");
+        return;
       }
     }
   }




reply via email to

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