force non-zero
authorChristian Grothoff <christian@grothoff.org>
Thu, 12 Jan 2017 17:04:14 +0000 (18:04 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 12 Jan 2017 17:04:14 +0000 (18:04 +0100)
src/zonemaster/gnunet-service-zonemaster.c

index 5f3ba84bb032312c3b2145cbb836a503c8e46847..08a09de34354167e3632e7be9cca166764b6a8bd 100644 (file)
@@ -731,7 +731,8 @@ run (void *cls,
                 "Number of allowed parallel background queries: %llu\n",
                 max_parallel_bg_queries);
   }
-
+  if (0 == max_parallel_bg_queries)
+    max_parallel_bg_queries = 1;         
   dht_handle = GNUNET_DHT_connect (c,
                                    (unsigned int) max_parallel_bg_queries);
   if (NULL == dht_handle)