fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 25 May 2010 16:28:28 +0000 (16:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 25 May 2010 16:28:28 +0000 (16:28 +0000)
src/transport/gnunet-service-transport.c

index 5b2c7de4bb53274e560270eb73f9f3b61fa72ca2..44d2ff72600d56f0f620def9b631808db81ad6e8 100644 (file)
@@ -3779,11 +3779,13 @@ check_hello_validated (void *cls,
                            gettext_noop ("# HELLO validations (update case)"),
                            1,
                            GNUNET_NO);      
+  chvc->ve_count++;
   GNUNET_HELLO_iterate_new_addresses (chvc->hello,
                                      h,
                                      GNUNET_TIME_relative_to_absolute (HELLO_REVALIDATION_START_TIME),
                                      &run_validation, 
                                      chvc);
+  chvc->ve_count--;
 }
 
 
@@ -4845,6 +4847,8 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
       chvc_head = chvc->next;
       if (chvc->piter != NULL)
        GNUNET_PEERINFO_iterate_cancel (chvc->piter);      
+      else
+       GNUNET_break (0);
       GNUNET_assert (chvc->ve_count == 0);
       GNUNET_free (chvc);
     }