]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer: minor optimization
authorVictor Julien <victor@inliniac.net>
Tue, 10 Mar 2020 20:14:39 +0000 (21:14 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Mar 2020 21:02:19 +0000 (22:02 +0100)
src/app-layer-parser.c

index 46d306d59300681201700d9984a1bac52e804a12..d97b9b574c2751884ef27b7e13fc574421a0a1b5 100644 (file)
@@ -1255,10 +1255,8 @@ int AppLayerParserParse(ThreadVars *tv, AppLayerParserThreadCtx *alp_tctx, Flow
                 /* Used only if it's TCP */
                 TcpSession *ssn = f->protoctx;
                 if (ssn != NULL) {
-                    StreamTcpSetSessionNoReassemblyFlag(ssn,
-                            flags & STREAM_TOCLIENT ? 1 : 0);
-                    StreamTcpSetSessionNoReassemblyFlag(ssn,
-                            flags & STREAM_TOSERVER ? 1 : 0);
+                    StreamTcpSetSessionNoReassemblyFlag(ssn, 0);
+                    StreamTcpSetSessionNoReassemblyFlag(ssn, 1);
                 }
             }
             /* Set the bypass flag for both the stream in this TcpSession */