app-layer: minor optimization

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

@ -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 */

Loading…
Cancel
Save