diff options
Diffstat (limited to 'src/pt')
-rw-r--r-- | src/pt/gnunet-daemon-pt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pt/gnunet-daemon-pt.c b/src/pt/gnunet-daemon-pt.c index 443ff8ae6..06ef88832 100644 --- a/src/pt/gnunet-daemon-pt.c +++ b/src/pt/gnunet-daemon-pt.c | |||
@@ -342,6 +342,12 @@ try_open_exit () | |||
342 | for (pos = exit_head; NULL != pos; pos = pos->next) | 342 | for (pos = exit_head; NULL != pos; pos = pos->next) |
343 | if (NULL == pos->cadet_channel) | 343 | if (NULL == pos->cadet_channel) |
344 | candidate_count++; | 344 | candidate_count++; |
345 | if (0 == candidate_count) | ||
346 | { | ||
347 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
348 | "No DNS exits available yet.\n"); | ||
349 | return; | ||
350 | } | ||
345 | candidate_selected = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, | 351 | candidate_selected = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, |
346 | candidate_count); | 352 | candidate_count); |
347 | candidate_count = 0; | 353 | candidate_count = 0; |