gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31070 - gnunet/src/dv


From: gnunet
Subject: [GNUnet-SVN] r31070 - gnunet/src/dv
Date: Thu, 5 Dec 2013 14:15:05 +0100

Author: wachs
Date: 2013-12-05 14:15:05 +0100 (Thu, 05 Dec 2013)
New Revision: 31070

Modified:
   gnunet/src/dv/plugin_transport_dv.c
Log:
fixing segfault since session->plugin was NULL


Modified: gnunet/src/dv/plugin_transport_dv.c
===================================================================
--- gnunet/src/dv/plugin_transport_dv.c 2013-12-05 13:01:41 UTC (rev 31069)
+++ gnunet/src/dv/plugin_transport_dv.c 2013-12-05 13:15:05 UTC (rev 31070)
@@ -314,6 +314,7 @@
 
   session = GNUNET_new (struct Session);
   session->sender = *peer;
+  session->plugin = plugin;
   session->distance = distance;
   session->network = network;
   GNUNET_assert(
@@ -490,6 +491,7 @@
                 struct GNUNET_TIME_Relative timeout,
                 GNUNET_TRANSPORT_TransmitContinuation cont, void *cont_cls)
 {
+  struct Plugin *plugin = cls;
   struct PendingRequest *pr;
   const struct GNUNET_MessageHeader *msg;
   struct GNUNET_MessageHeader *box;
@@ -512,9 +514,10 @@
   GNUNET_CONTAINER_DLL_insert_tail (session->pr_head,
                                    session->pr_tail,
                                    pr);
-  pr->th = GNUNET_DV_send (session->plugin->dvh,
+
+  pr->th = GNUNET_DV_send (plugin->dvh,
                           &session->sender,
-                          msg,
+                          msg ,
                           &send_finished,
                           pr);
   GNUNET_free_non_null (box);




reply via email to

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