]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Move PACKET_RECYCLE outside of flow lock in FlowForceReassemblyForQ as it confuses...
authorVictor Julien <victor@inliniac.net>
Fri, 2 Mar 2012 08:23:29 +0000 (09:23 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 2 Mar 2012 08:23:29 +0000 (09:23 +0100)
src/flow-timeout.c

index 00b0f31f067416461ab502d79f62b027fafd2eaf..09745baa129ca8ebf011a60b757bf482653bed03 100644 (file)
@@ -454,10 +454,10 @@ static inline void FlowForceReassemblyForQ(FlowQueue *q)
 
     /* we need to loop through all the flows in the queue */
     while (f != NULL) {
-        SCMutexLock(&f->m);
-
         PACKET_RECYCLE(reassemble_p);
 
+        SCMutexLock(&f->m);
+
         /* Get the tcp session for the flow */
         ssn = (TcpSession *)f->protoctx;