]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix libunbound report of errors when in background mode.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 18 Jul 2012 09:43:50 +0000 (09:43 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 18 Jul 2012 09:43:50 +0000 (09:43 +0000)
git-svn-id: file:///svn/unbound/trunk@2716 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
libunbound/libworker.c

index 59d6f2bfaf0efb60ad3b2249fd17a47616bce5ca..c6672c4c68e6046a915f043fb2868fb94643341b 100644 (file)
@@ -1,3 +1,6 @@
+18 July 2012: Willem
+       - Fix libunbound report of errors when in background mode.
+
 11 July 2012: Willem
        - updated iana ports list.
 
index 917a9106d078546ea73e573e9188619747548198..b23d560ab28a5bcf8bffff43e6e09e1b99a97f67 100644 (file)
@@ -643,6 +643,8 @@ libworker_bg_done_cb(void* arg, int rcode, ldns_buffer* buf, enum sec_status s,
                return;
        }
        q->msg_security = s;
+       if(!buf)
+               buf = q->w->env->scratch_buffer;
        if(rcode != 0) {
                error_encode(buf, rcode, NULL, 0, BIT_RD, NULL);
        }