From: Nathan S. Evans Date: Mon, 20 Dec 2010 10:11:56 +0000 (+0000) Subject: fix for bad fail condition X-Git-Tag: initial-import-from-subversion-38251~19507 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=12598f93aa76e4f3289476970caea8a5dfe6b447;p=oweals%2Fgnunet.git fix for bad fail condition --- diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c index b82d8cd7e..29e407439 100644 --- a/src/dht/test_dht_api.c +++ b/src/dht/test_dht_api.c @@ -180,6 +180,7 @@ test_find_peer_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_assert (peer->dht_handle != NULL); GNUNET_DHT_find_peer_stop (peer->find_peer_handle); + peer->find_peer_handle = NULL; #if HAVE_MALICIOUS GNUNET_DHT_set_malicious_getter (peer->dht_handle, GNUNET_TIME_UNIT_SECONDS); @@ -356,6 +357,7 @@ test_get_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) } GNUNET_assert (peer->dht_handle != NULL); GNUNET_DHT_get_stop (peer->get_handle); + peer->get_handle = NULL; GNUNET_SCHEDULER_add_now(&test_find_peer, &p1); }