gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21614 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r21614 - gnunet/src/transport
Date: Mon, 28 May 2012 15:00:56 +0200

Author: grothoff
Date: 2012-05-28 15:00:56 +0200 (Mon, 28 May 2012)
New Revision: 21614

Modified:
   gnunet/src/transport/gnunet-service-transport_neighbours.c
Log:
-fix kill logic (#2381), interpretation of flag was inverted

Modified: gnunet/src/transport/gnunet-service-transport_neighbours.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.c  2012-05-28 
12:08:09 UTC (rev 21613)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.c  2012-05-28 
13:00:56 UTC (rev 21614)
@@ -847,10 +847,11 @@
  * Free a neighbour map entry.
  *
  * @param n entry to free
- * @param terminate tell plugin to terminate sessions
+ * @param keep_sessions GNUNET_NO to tell plugin to terminate sessions,
+ *                      GNUNET_YES to keep all sessions
  */
 static void
-free_neighbour (struct NeighbourMapEntry *n, int terminate)
+free_neighbour (struct NeighbourMapEntry *n, int keep_sessions)
 {
   struct MessageQueue *mq;
   struct GNUNET_TRANSPORT_PluginFunctions *papi;
@@ -885,7 +886,7 @@
      API gives us not even the means to selectively kill only one of
      them! Killing all sessions like this seems to be very, very
      wrong. */
-  if ((GNUNET_YES == terminate) &&
+  if ((GNUNET_NO == keep_sessions) &&
       (NULL != n->primary_address.address) &&
       (NULL != (papi = GST_plugins_find 
(n->primary_address.address->transport_name))))
     papi->disconnect (papi->cls, &n->id);




reply via email to

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