]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Check repinfo in worker_handle_request, if null, drop it.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 1 Aug 2019 14:57:36 +0000 (16:57 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 1 Aug 2019 14:57:36 +0000 (16:57 +0200)
daemon/worker.c
doc/Changelog

index bc2ca5aa03e94c5ae2b5d08244794cb5d33ada6b..263fcddfe9b0fe98a39fbf41e9ef025a4e859adc 100644 (file)
@@ -1095,7 +1095,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error,
        struct respip_client_info* cinfo = NULL, cinfo_tmp;
        memset(&qinfo, 0, sizeof(qinfo));
 
-       if(error != NETEVENT_NOERROR) {
+       if(error != NETEVENT_NOERROR || !repinfo) {
                /* some bad tcp query DNS formats give these error calls */
                verbose(VERB_ALGO, "handle request called with err=%d", error);
                return 0;
index 4348a3d0e43c8fe0dbfa37222adae824d52cf0fa..33c7fdfeae72f484d45afa3d4525fd108655a84a 100644 (file)
@@ -4,6 +4,7 @@
        - Fix to return after failed auth zone http chunk write.
        - Fix to remove unused test for task_probe existance.
        - Fix to timeval_add for remaining second in microseconds.
+       - Check repinfo in worker_handle_request, if null, drop it.
 
 29 July 2019: Wouter
        - Add verbose log message when auth zone file is written, at level 4.