From: Victor Julien Date: Tue, 10 Mar 2020 20:14:39 +0000 (+0100) Subject: app-layer: minor optimization X-Git-Tag: suricata-6.0.0-beta1~647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b2ec0e4ddcce0ee14e1ae7ea976a57d91ec173;p=thirdparty%2Fsuricata.git app-layer: minor optimization --- diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index 46d306d593..d97b9b574c 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -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 */