]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix 5011 anchor update timer after reload.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Aug 2015 11:56:37 +0000 (11:56 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Aug 2015 11:56:37 +0000 (11:56 +0000)
git-svn-id: file:///svn/unbound/trunk@3466 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
validator/autotrust.c

index e70a9d07ed519b79620b816781ad7c70bcf80d23..46f4098ebc423dd5aa7593ef5d58daf1ddec566c 100644 (file)
@@ -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.
index 1194fae2a249993f56ad48632b435881667e6171..c732e24e4bea20c2204c9d5dfbd9f099d23fdf45 100644 (file)
@@ -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;