]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-state: remove redundant code
authorVictor Julien <victor@inliniac.net>
Thu, 26 Feb 2015 16:49:30 +0000 (17:49 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Mar 2015 14:36:33 +0000 (15:36 +0100)
src/detect-engine-state.c

index 5aed7d87603457f5f2a3044e7d9b57e865bb03f4..144ea623e677aeb2280ebe0fbc6e1f7e2cfc6857 100644 (file)
@@ -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;