]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp: fix passing a wrong delim len around
authorVictor Julien <vjulien@oisf.net>
Mon, 27 Jun 2022 18:51:53 +0000 (20:51 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 29 Jun 2022 17:59:58 +0000 (19:59 +0200)
(cherry picked from commit 6e2c066ce1cf722e92f08574059b6138be4f0b1e)

src/app-layer-smtp.c

index adf4d1240eff4ccf08577479ba95b1b85c72cdb2..b20659c19827fd866735fa9052aded11f6e9bf0a 100644 (file)
@@ -577,6 +577,7 @@ static AppLayerResult SMTPGetLine(SMTPState *state)
             // Whatever came in with first LF should also get discarded
             state->discard_till_lf = false;
             state->current_line_len = 0;
+            state->current_line_delimiter_len = 0;
             SCReturnStruct(APP_LAYER_OK);
         }
         state->current_line = state->input + o_consumed;