stream/app-layer: break loop on proto change

pull/5265/head
Philippe Antoine 5 years ago committed by Victor Julien
parent c9a637d854
commit 3cfc1fcb07

@ -1169,7 +1169,7 @@ static int ReassembleUpdateAppLayer (ThreadVars *tv,
(uint8_t *)mydata, mydata_len, flags); (uint8_t *)mydata, mydata_len, flags);
AppLayerProfilingStore(ra_ctx->app_tctx, p); AppLayerProfilingStore(ra_ctx->app_tctx, p);
uint64_t new_app_progress = STREAM_APP_PROGRESS(*stream); 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; break;
app_progress = new_app_progress; app_progress = new_app_progress;
} }

Loading…
Cancel
Save