From 3cfc1fcb07551511cb89ab029bcc260ee9db75a6 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 31 Jul 2020 08:56:37 +0200 Subject: [PATCH] stream/app-layer: break loop on proto change --- src/stream-tcp-reassemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }