From f858714edde8186d27a1f4e9a93ee3abcf1d8166 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sun, 23 Oct 2016 12:26:18 -0400 Subject: [PATCH] Fix small nodeslist parsing bug --- src/bootstrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap.c b/src/bootstrap.c index f93f204..ae6f659 100644 --- a/src/bootstrap.c +++ b/src/bootstrap.c @@ -477,7 +477,7 @@ void *load_nodeslist_thread(void *data) /* If nodeslist does not contain any valid entries we set the last_scan value * to 0 so that it will fetch a new list the next time this function is called. */ - if (idx == 0) { + if (Nodes.count == 0) { const char *s = "{\"last_scan\":0}"; rewind(fp); fwrite(s, strlen(s), 1, fp); // Not much we can do if it fails