summaryrefslogtreecommitdiffstats
path: root/src/app-layer-parser.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:40:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:40:14 +0000
commit666c8268e8bdf745f609f7f389e5c67be45f0065 (patch)
tree93948ffd948bd0f56bd3b454cef09bd00a01224e /src/app-layer-parser.c
parentAdding upstream version 1:7.0.3. (diff)
downloadsuricata-666c8268e8bdf745f609f7f389e5c67be45f0065.tar.xz
suricata-666c8268e8bdf745f609f7f389e5c67be45f0065.zip
Adding upstream version 1:7.0.4.upstream/1%7.0.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/app-layer-parser.c')
-rw-r--r--src/app-layer-parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c
index 7783c07..e9b84ed 100644
--- a/src/app-layer-parser.c
+++ b/src/app-layer-parser.c
@@ -1444,7 +1444,6 @@ int AppLayerParserParse(ThreadVars *tv, AppLayerParserThreadCtx *alp_tctx, Flow
/* set the packets to no inspection and reassembly if required */
if (pstate->flags & APP_LAYER_PARSER_NO_INSPECTION) {
AppLayerParserSetEOF(pstate);
- FlowSetNoPayloadInspectionFlag(f);
if (f->proto == IPPROTO_TCP) {
StreamTcpDisableAppLayer(f);
@@ -1466,6 +1465,9 @@ int AppLayerParserParse(ThreadVars *tv, AppLayerParserThreadCtx *alp_tctx, Flow
StreamTcpSetSessionBypassFlag(ssn);
}
}
+ } else {
+ // for TCP, this is set after flushing
+ FlowSetNoPayloadInspectionFlag(f);
}
}