From: W.C.A. Wijngaards Date: Tue, 28 Jan 2020 11:46:08 +0000 (+0100) Subject: dnstap io, fix for msg queue cleanup and make test. X-Git-Tag: 1.11.0rc1~120^2~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3bf4168886c964cfd9526a93e2b6648720843ae;p=thirdparty%2Funbound.git dnstap io, fix for msg queue cleanup and make test. --- diff --git a/dnstap/dtstream.c b/dnstap/dtstream.c index a62de0a63..d03828123 100644 --- a/dnstap/dtstream.c +++ b/dnstap/dtstream.c @@ -286,7 +286,9 @@ int dt_io_thread_register_queue(struct dt_io_thread* dtio, void dt_io_thread_unregister_queue(struct dt_io_thread* dtio, struct dt_msg_queue* mq) { - struct dt_io_list_item* item=dtio->io_list, *prev=NULL; + struct dt_io_list_item* item, *prev=NULL; + if(!dtio) return; + item = dtio->io_list; while(item) { if(item->queue == mq) { /* found it */