detect: fix potential deadlock during reload

If interrupted during the BreakLoop stage during reload, a deadlock
could happen.
pull/1970/head
Victor Julien 10 years ago
parent f836256e20
commit ffb5498228

@ -551,6 +551,7 @@ static void BreakCapture(void)
TmSlot *slots = tv->tm_slots;
while (slots != NULL) {
if (suricata_ctl_flags != 0) {
SCMutexUnlock(&tv_root_lock);
return;
}

Loading…
Cancel
Save