flow: fix crash when flow engine under extreme stress, and unable to force free any existing flow

pull/181/head
Victor Julien 14 years ago
parent f6bb95e919
commit 8129e64875

@ -425,6 +425,10 @@ static Flow *FlowGetNew(Packet *p) {
}
f = FlowGetUsedFlow();
if (f == NULL) {
/* very rare, but we can fail. Just giving up */
return NULL;
}
/* freed a flow, but it's unlocked */
} else {

Loading…
Cancel
Save