-fixing assertion failure on sparcbot in line 2679, adding comments for possible...
authorChristian Grothoff <christian@grothoff.org>
Thu, 31 May 2012 20:59:20 +0000 (20:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 31 May 2012 20:59:20 +0000 (20:59 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 662e2b569e373c32b68347799c5cdcc21d901a08..3e41615b6d49339fca0898d750b421bad752ee74 100644 (file)
@@ -1769,9 +1769,11 @@ handle_test_blacklist_cont (void *cls,
     }
     else
     {
+      // FIXME: should also possibly destroy session with plugin!?
       GNUNET_ATS_address_destroyed (GST_ats,
                                    bcc->na.address,
                                    NULL);
+      free_address (&n->primary_address);
       n->state = S_INIT_ATS;
       n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT);
       // FIXME: do we need to ask ATS again for suggestions?
@@ -1807,9 +1809,11 @@ handle_test_blacklist_cont (void *cls,
     }
     else
     {
+      // FIXME: should also possibly destroy session with plugin!?
       GNUNET_ATS_address_destroyed (GST_ats,
                                    bcc->na.address,
                                    NULL);
+      free_address (&n->primary_address);
       n->state = S_INIT_ATS;
       n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT);
       // FIXME: do we need to ask ATS again for suggestions?