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

pull/165/merge
Victor Julien 13 years ago
parent 76f0838a9f
commit 966c731e73

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

Loading…
Cancel
Save