]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream/app-layer: break loop on proto change
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 31 Jul 2020 06:56:37 +0000 (08:56 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 4 Aug 2020 11:59:19 +0000 (13:59 +0200)
src/stream-tcp-reassemble.c

index 4c5858aee0971d682946c891319a137170aef4e9..e017dcf661c7fc0e3dc46636f540528fba1b08af 100644 (file)
@@ -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;
     }