From: Philippe Antoine Date: Fri, 31 Jul 2020 06:56:37 +0000 (+0200) Subject: stream/app-layer: break loop on proto change X-Git-Tag: suricata-6.0.0-beta1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cfc1fcb07551511cb89ab029bcc260ee9db75a6;p=thirdparty%2Fsuricata.git stream/app-layer: break loop on proto change --- diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index 4c5858aee0..e017dcf661 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -1169,7 +1169,7 @@ static int ReassembleUpdateAppLayer (ThreadVars *tv, (uint8_t *)mydata, mydata_len, flags); AppLayerProfilingStore(ra_ctx->app_tctx, p); uint64_t new_app_progress = STREAM_APP_PROGRESS(*stream); - if (new_app_progress == app_progress) + if (new_app_progress == app_progress || FlowChangeProto(p->flow)) break; app_progress = new_app_progress; }