From: Victor Julien Date: Thu, 26 Feb 2015 16:49:30 +0000 (+0100) Subject: detect-state: remove redundant code X-Git-Tag: suricata-2.1beta4~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=206f9d40108d72c687e5444e5c987d525843934c;p=thirdparty%2Fsuricata.git detect-state: remove redundant code --- diff --git a/src/detect-engine-state.c b/src/detect-engine-state.c index 5aed7d8760..144ea623e6 100644 --- a/src/detect-engine-state.c +++ b/src/detect-engine-state.c @@ -353,9 +353,6 @@ int DeStateDetectStartDetection(ThreadVars *tv, DetectEngineCtx *de_ctx, } if (TxIsLast(tx_id, total_txs)) { - void *tx = AppLayerParserGetTx(f->proto, alproto, alstate, tx_id); - if (tx == NULL) - continue; if (AppLayerParserGetStateProgress(f->proto, alproto, tx, flags) < AppLayerParserGetStateProgressCompletionStatus(f->proto, alproto, flags)) { store_de_state = 1;