From 9c1b646f64acbfcca9fd1ac9cdf31e9a6ee5d44a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 16 Apr 2010 18:50:45 +0000 Subject: [PATCH] fix --- src/hostlist/hostlist-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 181f9da14..88b28a4a8 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -386,6 +386,8 @@ get_list_url () use_preconfigured_list = GNUNET_NO; return get_bootstrap_url(); } + if (linked_list_size == 0) + return NULL; index = GNUNET_CRYPTO_random_u32 ( GNUNET_CRYPTO_QUALITY_WEAK, linked_list_size); counter = 0; pos = linked_list_head; -- 2.25.1