From: Victor Julien Date: Mon, 27 Jun 2022 18:51:53 +0000 (+0200) Subject: smtp: fix passing a wrong delim len around X-Git-Tag: suricata-7.0.0-beta1~418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e2c066ce1cf722e92f08574059b6138be4f0b1e;p=thirdparty%2Fsuricata.git smtp: fix passing a wrong delim len around --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index 038800f9a2..f5ab4ca13b 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -665,6 +665,7 @@ static AppLayerResult SMTPGetLine(SMTPState *state, SMTPInput *input, SMTPLine * // Whatever came in with first LF should also get discarded state->discard_till_lf = false; line->len = 0; + line->delim_len = 0; SCReturnStruct(APP_LAYER_OK); } line->buf = input->buf + o_consumed;