]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for crash in dns64 module if response is null.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 12 Dec 2018 16:03:05 +0000 (16:03 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 12 Dec 2018 16:03:05 +0000 (16:03 +0000)
git-svn-id: file:///svn/unbound/trunk@5025 be551aaa-1e26-0410-a405-d3ace91eadb9

dns64/dns64.c
doc/Changelog

index 77e689000ef39671f2964d936046a4e0c0389761..f2834da2bfc43d6fa048e30158831a5aa71dfc5d 100644 (file)
@@ -628,6 +628,7 @@ handle_event_moddone(struct module_qstate* qstate, int id)
 
        /* Store the response in cache. */
        if ( (!iq || !iq->started_no_cache_store) &&
+               qstate->return_msg && qstate->return_msg->rep &&
                !dns_cache_store(qstate->env, &qstate->qinfo, qstate->return_msg->rep,
                0, 0, 0, NULL, qstate->query_flags))
                log_err("out of memory");
index c4f755eb21ed30bcc4c9cbb76badb676f151d4fd..9e05a07684b183752b6db827561f8046cea248c3 100644 (file)
@@ -1,3 +1,6 @@
+12 December 2018: Wouter
+       - Fix for crash in dns64 module if response is null.
+
 10 December 2018: Wouter
        - Fix config parser memory leaks.
        - ip-ratelimit-factor of 1 allows all traffic through, instead of the