]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #528: if very high logging (4 or more) segfault on allow_snoop.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 22 Oct 2013 12:01:51 +0000 (12:01 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 22 Oct 2013 12:01:51 +0000 (12:01 +0000)
git-svn-id: file:///svn/unbound/trunk@2994 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iterator.c

index ff0f765e434259e6299fa35a74dfe5e9504b3048..8e168dc04545c3f4403045d7ace647df2ba2aa63 100644 (file)
@@ -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
index 16048933170388e14f52ead49708cab395c15fb3..3c9804926d13dd05da1ef1b98776efe8649e3817 100644 (file)
@@ -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)