gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32702 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r32702 - gnunet/src/ats
Date: Thu, 20 Mar 2014 10:58:00 +0100

Author: wachs
Date: 2014-03-20 10:57:59 +0100 (Thu, 20 Mar 2014)
New Revision: 32702

Modified:
   gnunet/src/ats/ats_api_scheduling.c
   gnunet/src/ats/gnunet-service-ats_addresses.c
Log:
fixed check for destruction of inbound addresses


Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2014-03-20 09:57:36 UTC (rev 32701)
+++ gnunet/src/ats/ats_api_scheduling.c 2014-03-20 09:57:59 UTC (rev 32702)
@@ -1433,8 +1433,11 @@
 
 
 /**
- * A session got destroyed, stop including it as a valid address.
+ * An address got destroyed, stop including it as a valid address.
  *
+ * If a session is given, only the session will be removed, if no session is
+ * given the full address will be deleted.
+ *
  * @param sh handle
  * @param address the address
  * @param session session handle that is no longer valid, can be NULL

Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c       2014-03-20 09:57:36 UTC 
(rev 32701)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c       2014-03-20 09:57:59 UTC 
(rev 32702)
@@ -1057,8 +1057,8 @@
       GNUNET_break(0);
       return GNUNET_OK;
     }
-
-    if (aa->addr_len == 0)
+    if (GNUNET_HELLO_ADDRESS_INFO_INBOUND ==
+        (aa->local_address_info && GNUNET_HELLO_ADDRESS_INFO_INBOUND))
     {
       /* Inbound connection died, delete full address */
       GNUNET_log(GNUNET_ERROR_TYPE_INFO,




reply via email to

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