From: W.C.A. Wijngaards Date: Thu, 1 Aug 2019 14:57:36 +0000 (+0200) Subject: - Check repinfo in worker_handle_request, if null, drop it. X-Git-Tag: release-1.9.3rc1~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa506e3cdae217a32a15994e7612980a152c7462;p=thirdparty%2Funbound.git - Check repinfo in worker_handle_request, if null, drop it. --- diff --git a/daemon/worker.c b/daemon/worker.c index bc2ca5aa0..263fcddfe 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -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; diff --git a/doc/Changelog b/doc/Changelog index 4348a3d0e..33c7fdfea 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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.