From: Wouter Wijngaards Date: Tue, 27 Nov 2018 12:42:59 +0000 (+0000) Subject: - stat count SERVFAIL downstream auth-zone queries for expired zones. X-Git-Tag: release-1.8.2rc1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60da4369a4a55eae8e2240a4e47bc0ae76bf59c8;p=thirdparty%2Funbound.git - stat count SERVFAIL downstream auth-zone queries for expired zones. git-svn-id: file:///svn/unbound/trunk@4984 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index f6933cfbd..df4dee6a6 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -7,6 +7,7 @@ not overwrite valid cache entry with SERVFAIL. - auth-zone give SERVFAIL when expired, fallback activates when expired, and this is documented in the man page. + - stat count SERVFAIL downstream auth-zone queries for expired zones. 26 November 2018: Wouter - Fix to not set GLOB_NOSORT so the unbound.conf include: files are diff --git a/services/authzone.c b/services/authzone.c index 14ae7b74f..b58590e40 100644 --- a/services/authzone.c +++ b/services/authzone.c @@ -3267,6 +3267,9 @@ int auth_zones_answer(struct auth_zones* az, struct module_env* env, return 0; } lock_rw_unlock(&z->lock); + lock_rw_wrlock(&az->lock); + az->num_query_down++; + lock_rw_unlock(&az->lock); auth_error_encode(qinfo, env, edns, repinfo, buf, temp, LDNS_RCODE_SERVFAIL); return 1;