gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r30994 - gnunet/src/mesh
Date: Sat, 30 Nov 2013 03:17:07 +0100

Author: bartpolot
Date: 2013-11-30 03:17:07 +0100 (Sat, 30 Nov 2013)
New Revision: 30994

Modified:
   gnunet/src/mesh/gnunet-service-mesh_channel.c
Log:
- fix segfault


Modified: gnunet/src/mesh/gnunet-service-mesh_channel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_channel.c       2013-11-30 02:12:16 UTC 
(rev 30993)
+++ gnunet/src/mesh/gnunet-service-mesh_channel.c       2013-11-30 02:17:07 UTC 
(rev 30994)
@@ -2184,8 +2184,15 @@
       q->rel = fwd ? ch->root_rel : ch->dest_rel;
       if (NULL != q->rel->uniq)
       {
-        GMT_cancel (q->rel->uniq->q);
-        /* ch_message_sent is called, freeing and NULLing uniq */
+        if (NULL != q->rel->uniq->q)
+        {
+          GMT_cancel (q->rel->uniq->q);
+          /* ch_message_sent is called, freeing and NULLing uniq */
+        }
+        else
+        {
+          GNUNET_free (q->rel->uniq);
+        }
       }
       q->q = GMT_send_prebuilt_message (message, ch->t, ch,
                                         fwd, GNUNET_YES,




reply via email to

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