From: Wouter Wijngaards Date: Tue, 22 Oct 2013 12:01:51 +0000 (+0000) Subject: - Fix #528: if very high logging (4 or more) segfault on allow_snoop. X-Git-Tag: release-1.4.22rc1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1ce3e10d8b9729f6862fa3d70906dc9ad173db8;p=thirdparty%2Funbound.git - Fix #528: if very high logging (4 or more) segfault on allow_snoop. git-svn-id: file:///svn/unbound/trunk@2994 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index ff0f765e4..8e168dc04 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -5,6 +5,7 @@ ub_resolve_event – the cfglock is held when libworker_create is called. This ends up trying to acquire the lock again in context_obtain_alloc in the call chain. + - Fix #528: if very high logging (4 or more) segfault on allow_snoop. 26 Sep 2013: Wouter - unbound-event.h is installed if configured --with-libevent. It diff --git a/iterator/iterator.c b/iterator/iterator.c index 160489331..3c9804926 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -1212,7 +1212,7 @@ processInitRequest3(struct module_qstate* qstate, struct iter_qstate* iq, * cached referral as the response. */ if(!(qstate->query_flags & BIT_RD)) { iq->response = iq->deleg_msg; - if(verbosity >= VERB_ALGO) + if(verbosity >= VERB_ALGO && iq->response) log_dns_msg("no RD requested, using delegation msg", &iq->response->qinfo, iq->response->rep); if(qstate->reply_origin)