app-layer: minor optimization

pull/4691/head
Victor Julien 6 years ago
parent fee7b97ec0
commit 54b2ec0e4d

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

Loading…
Cancel
Save