From b3bf4168886c964cfd9526a93e2b6648720843ae Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 28 Jan 2020 12:46:08 +0100 Subject: [PATCH] dnstap io, fix for msg queue cleanup and make test. --- dnstap/dtstream.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */