]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http: fix multipart completion 8682/head
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 31 Mar 2023 18:06:13 +0000 (20:06 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 4 Apr 2023 15:03:12 +0000 (17:03 +0200)
As brought by commit 578f328e06b3e03f3bdbbf852b5d121e20849b8b

Ticket: #5952

src/app-layer-htp.c

index 7855fb806da42a0be997a0ae26ac2a1859b1bd5c..f750d61d4e3ba79b77d00fad9690d634a68b4642 100644 (file)
@@ -1449,7 +1449,7 @@ static int HtpRequestBodyHandleMultipart(HtpState *hstate, HtpTxUserData *htud,
                 for (; filedata_len < chunks_buffer_len; filedata_len++) {
                     // take as much as we can until the beginning of a new line
                     if (chunks_buffer[filedata_len] == '\r') {
-                        if (filedata_len + 1 == expected_boundary_len ||
+                        if (filedata_len + 1 == chunks_buffer_len ||
                                 chunks_buffer[filedata_len + 1] == '\n') {
                             break;
                         }