From 771e7295ac3471037c3b75cb659c325c06a0d81f Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 3 Aug 2015 11:56:37 +0000 Subject: [PATCH] - Fix 5011 anchor update timer after reload. git-svn-id: file:///svn/unbound/trunk@3466 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + validator/autotrust.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index e70a9d07e..46f4098eb 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ 3 August 2015: Wouter - Document in the manual more text about configuring locally served zones. + - Fix 5011 anchor update timer after reload. 30 July 2015: Wouter - please afl-gcc (llvm) for uninitialised variable warning. diff --git a/validator/autotrust.c b/validator/autotrust.c index 1194fae2a..c732e24e4 100644 --- a/validator/autotrust.c +++ b/validator/autotrust.c @@ -2357,6 +2357,8 @@ todo_probe(struct module_env* env, time_t* next) if( (el=rbtree_first(&env->anchors->autr->probe)) == RBTREE_NULL) { /* in case of revoked anchors */ lock_basic_unlock(&env->anchors->lock); + /* signal that there are no anchors to probe */ + *next = 0; return NULL; } tp = (struct trust_anchor*)el->key; @@ -2395,7 +2397,7 @@ autr_probe_timer(struct module_env* env) num++; } regional_free_all(env->scratch); - if(num == 0) + if(next_probe == 0) return 0; /* no trust points to probe */ verbose(VERB_ALGO, "autotrust probe timer %d callbacks done", num); return next_probe; -- 2.47.2