gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r22247 - gnunet/src/stream


From: gnunet
Subject: [GNUnet-SVN] r22247 - gnunet/src/stream
Date: Sun, 24 Jun 2012 09:31:11 +0200

Author: grothoff
Date: 2012-06-24 09:31:11 +0200 (Sun, 24 Jun 2012)
New Revision: 22247

Modified:
   gnunet/src/stream/stream_api.c
Log:
-LRN:  Don't free shutdown handle while it's in use


Modified: gnunet/src/stream/stream_api.c
===================================================================
--- gnunet/src/stream/stream_api.c      2012-06-24 07:30:07 UTC (rev 22246)
+++ gnunet/src/stream/stream_api.c      2012-06-24 07:31:11 UTC (rev 22247)
@@ -1741,8 +1741,6 @@
   if (NULL != shutdown_handle->completion_cb) /* Shutdown completion */
     shutdown_handle->completion_cb(shutdown_handle->completion_cls,
                                    operation);
-  GNUNET_free (shutdown_handle); /* Free shutdown handle */
-  socket->shutdown_handle = NULL;
   if (GNUNET_SCHEDULER_NO_TASK
       != shutdown_handle->close_msg_retransmission_task_id)
   {
@@ -1751,6 +1749,8 @@
     shutdown_handle->close_msg_retransmission_task_id =
       GNUNET_SCHEDULER_NO_TASK;
   }
+  GNUNET_free (shutdown_handle); /* Free shutdown handle */
+  socket->shutdown_handle = NULL;
   return GNUNET_OK;
 }
 




reply via email to

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