aboutsummaryrefslogtreecommitdiff
path: root/src/regex/gnunet-daemon-regexprofiler.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-03-14 13:51:46 +0000
committerBart Polot <bart@net.in.tum.de>2013-03-14 13:51:46 +0000
commite7952b62750bbebe5c4203da6b42da4ac34d35b3 (patch)
tree8b7bdf7e428b4c9584576af2a17b6480ab57ff74 /src/regex/gnunet-daemon-regexprofiler.c
parentfcba8b93e2564cfb9246083d06e697753f792d82 (diff)
downloadgnunet-e7952b62750bbebe5c4203da6b42da4ac34d35b3.tar.gz
gnunet-e7952b62750bbebe5c4203da6b42da4ac34d35b3.zip
- fix arm_api crash
Diffstat (limited to 'src/regex/gnunet-daemon-regexprofiler.c')
-rw-r--r--src/regex/gnunet-daemon-regexprofiler.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/regex/gnunet-daemon-regexprofiler.c b/src/regex/gnunet-daemon-regexprofiler.c
index fd6a97d07..711f7fa42 100644
--- a/src/regex/gnunet-daemon-regexprofiler.c
+++ b/src/regex/gnunet-daemon-regexprofiler.c
@@ -151,9 +151,11 @@ reannounce_regex (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
151 (unsigned int) max_path_compression, 151 (unsigned int) max_path_compression,
152 stats_handle); 152 stats_handle);
153 } 153 }
154 /* Will result in a double first announce */ 154 else
155 GNUNET_assert (NULL != announce_handle); 155 {
156 GNUNET_REGEX_reannounce (announce_handle); 156 GNUNET_assert (NULL != announce_handle);
157 GNUNET_REGEX_reannounce (announce_handle);
158 }
157 159
158 random_delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 160 random_delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
159 GNUNET_CRYPTO_random_u32 ( 161 GNUNET_CRYPTO_random_u32 (