From: Wouter Wijngaards Date: Tue, 1 Dec 2009 08:12:00 +0000 (+0000) Subject: Fix crash reported on unbound-users with module-config "iterator" X-Git-Tag: release-1.4.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d1c4c8002a3652aedb055c63af94b1f3b03b1a9;p=thirdparty%2Funbound.git Fix crash reported on unbound-users with module-config "iterator" git-svn-id: file:///svn/unbound/trunk@1924 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/validator/autotrust.c b/validator/autotrust.c index b81f048ee..2170eb038 100644 --- a/validator/autotrust.c +++ b/validator/autotrust.c @@ -100,6 +100,8 @@ size_t autr_get_num_anchors(struct val_anchors* anchors) { size_t res = 0; + if(!anchors) + return 0; lock_basic_lock(&anchors->lock); if(anchors->autr) res = anchors->autr->probe.count;