[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r38048 - gnunet/src/pt
From: |
gnunet |
Subject: |
[GNUnet-SVN] r38048 - gnunet/src/pt |
Date: |
Fri, 30 Sep 2016 14:58:01 +0200 |
Author: grothoff
Date: 2016-09-30 14:58:01 +0200 (Fri, 30 Sep 2016)
New Revision: 38048
Modified:
gnunet/src/pt/gnunet-daemon-pt.c
Log:
fix #4383
Modified: gnunet/src/pt/gnunet-daemon-pt.c
===================================================================
--- gnunet/src/pt/gnunet-daemon-pt.c 2016-09-30 12:55:07 UTC (rev 38047)
+++ gnunet/src/pt/gnunet-daemon-pt.c 2016-09-30 12:58:01 UTC (rev 38048)
@@ -342,6 +342,12 @@
for (pos = exit_head; NULL != pos; pos = pos->next)
if (NULL == pos->cadet_channel)
candidate_count++;
+ if (0 == candidate_count)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "No DNS exits available yet.\n");
+ return;
+ }
candidate_selected = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
candidate_count);
candidate_count = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r38048 - gnunet/src/pt,
gnunet <=