dnstap io, fix for msg queue cleanup and make test.

This commit is contained in:
W.C.A. Wijngaards 2020-01-28 12:46:08 +01:00
parent c3712a288f
commit b3bf416888

View File

@ -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 */