aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_api.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-06-23 15:51:43 +0000
committerNathan S. Evans <evans@in.tum.de>2010-06-23 15:51:43 +0000
commit5ae985135268e8fe5a731f877ad5ddb3c854a708 (patch)
treea13e997975b20200cb4c040d4d36c2d25aa1f609 /src/dht/test_dht_api.c
parent4377ade158e5b6d0e60c3ad1eae2ae74d892d973 (diff)
downloadgnunet-5ae985135268e8fe5a731f877ad5ddb3c854a708.tar.gz
gnunet-5ae985135268e8fe5a731f877ad5ddb3c854a708.zip
someone changed how services start and didn't tell the dht testcase
Diffstat (limited to 'src/dht/test_dht_api.c')
-rw-r--r--src/dht/test_dht_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c
index 122dfff16..635001c94 100644
--- a/src/dht/test_dht_api.c
+++ b/src/dht/test_dht_api.c
@@ -149,7 +149,8 @@ end_badly ()
149#if VERBOSE 149#if VERBOSE
150 fprintf (stderr, "Ending on an unhappy note.\n"); 150 fprintf (stderr, "Ending on an unhappy note.\n");
151#endif 151#endif
152 if (retry_context.peer_ctx->find_peer_handle != NULL) 152
153 if ((retry_context.peer_ctx != NULL) && (retry_context.peer_ctx->find_peer_handle != NULL))
153 GNUNET_DHT_find_peer_stop(retry_context.peer_ctx->find_peer_handle, NULL, NULL); 154 GNUNET_DHT_find_peer_stop(retry_context.peer_ctx->find_peer_handle, NULL, NULL);
154 if (retry_context.retry_task != GNUNET_SCHEDULER_NO_TASK) 155 if (retry_context.retry_task != GNUNET_SCHEDULER_NO_TASK)
155 GNUNET_SCHEDULER_cancel(sched, retry_context.retry_task); 156 GNUNET_SCHEDULER_cancel(sched, retry_context.retry_task);