From: Victor Julien Date: Fri, 30 Mar 2012 13:09:04 +0000 (+0200) Subject: flow: add missing unlocks for rare error condition at flow shut down. X-Git-Tag: suricata-1.3beta1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c397e3a533e8e6297c49c4fa4f9befb143ed1e2;p=thirdparty%2Fsuricata.git flow: add missing unlocks for rare error condition at flow shut down. --- diff --git a/src/flow-timeout.c b/src/flow-timeout.c index 974c47249d..3d2920a255 100644 --- a/src/flow-timeout.c +++ b/src/flow-timeout.c @@ -519,6 +519,7 @@ static inline void FlowForceReassemblyForHash(void) if (p == NULL) { TmqhOutputPacketpool(NULL, reassemble_p); + FBLOCK_UNLOCK(fb); return; } @@ -547,6 +548,7 @@ static inline void FlowForceReassemblyForHash(void) if (p == NULL) { TmqhOutputPacketpool(NULL, reassemble_p); + FBLOCK_UNLOCK(fb); return; }