]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Check if there is a response before logging.
authorYuri Schaeffer <yuri@nlnetlabs.nl>
Tue, 22 Oct 2013 10:47:11 +0000 (10:47 +0000)
committerYuri Schaeffer <yuri@nlnetlabs.nl>
Tue, 22 Oct 2013 10:47:11 +0000 (10:47 +0000)
git-svn-id: file:///svn/unbound/branches/edns-subnet@2993 be551aaa-1e26-0410-a405-d3ace91eadb9

iterator/iterator.c

index 6632841859e13e07ac8b10aa05d084c541370320..e0d85d6d2f34a0dbd2e75fb844ca8dede0b9718f 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)