From 54b2ec0e4ddcce0ee14e1ae7ea976a57d91ec173 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 10 Mar 2020 21:14:39 +0100 Subject: [PATCH] app-layer: minor optimization --- src/app-layer-parser.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 */ -- 2.47.2