From: Victor Julien Date: Mon, 16 Sep 2013 17:25:35 +0000 (+0200) Subject: Coverity 1038100: remove dead code from flow hash timeout code(2) X-Git-Tag: suricata-2.0beta2~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=440124a4b944b7535595c3a99b2fd9bf924c9512;p=thirdparty%2Fsuricata.git Coverity 1038100: remove dead code from flow hash timeout code(2) --- diff --git a/src/flow-timeout.c b/src/flow-timeout.c index af298f2df1..8d02cc9dba 100644 --- a/src/flow-timeout.c +++ b/src/flow-timeout.c @@ -503,8 +503,7 @@ static inline void FlowForceReassemblyForHash(void) for (idx = 0; idx < flow_config.hash_size; idx++) { FlowBucket *fb = &flow_hash[idx]; - if (fb == NULL) - continue; + FBLOCK_LOCK(fb); /* get the topmost flow from the QUEUE */