nfq: fix exit function

Exit function was trying to close the nfq handler even if it was
null. This was causing a crash.
remotes/origin/master-1.1.x
Eric Leblond 15 years ago committed by Victor Julien
parent 277a384af7
commit 04f2afa81b

@ -492,7 +492,9 @@ TmEcode VerdictNFQThreadDeinit(ThreadVars *tv, void *data) {
NFQQueueVars *nq = NFQGetQueue(ntv->nfq_index);
SCLogDebug("starting... will close queuenum %" PRIu32 "", nq->queue_num);
nfq_destroy_queue(nq->qh);
if (nq->qh) {
nfq_destroy_queue(nq->qh);
}
return TM_ECODE_OK;
}

Loading…
Cancel
Save