aboutsummaryrefslogtreecommitdiff
path: root/src/pt
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-30 12:58:01 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-30 12:58:01 +0000
commit030a97d44c3a36fd62efcb524a974bdc1b8bb48c (patch)
treeb3f367720c51f0bcedd1f347b3ed930ab89a7758 /src/pt
parentd32ce3a1d0528519708e2721d752b292aa7ac0a3 (diff)
downloadgnunet-030a97d44c3a36fd62efcb524a974bdc1b8bb48c.tar.gz
gnunet-030a97d44c3a36fd62efcb524a974bdc1b8bb48c.zip
fix #4383
Diffstat (limited to 'src/pt')
-rw-r--r--src/pt/gnunet-daemon-pt.c6
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;