From: Victor Julien Date: Wed, 21 Oct 2020 17:58:23 +0000 (+0200) Subject: stream: don't send STREAM_START multiple times X-Git-Tag: suricata-6.0.1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a08fe82d48dbfddd8bfedb40a1eeae5679cfb53;p=thirdparty%2Fsuricata.git stream: don't send STREAM_START multiple times --- diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index f39e1fcc56..8b195b6d16 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -1090,9 +1090,9 @@ static int ReassembleUpdateAppLayer (ThreadVars *tv, const uint8_t *mydata; uint32_t mydata_len; bool gap_ahead = false; - const uint8_t flags = StreamGetAppLayerFlags(ssn, *stream, p); while (1) { + const uint8_t flags = StreamGetAppLayerFlags(ssn, *stream, p); bool check_for_gap_ahead = ((*stream)->data_required > 0); gap_ahead = GetAppBuffer(*stream, &mydata, &mydata_len, app_progress, check_for_gap_ahead);