From: Shivani Bhardwaj Date: Wed, 12 Apr 2023 07:12:53 +0000 (+0530) Subject: smtp: reset current line len at start X-Git-Tag: suricata-6.0.11~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08fd66718a9aede768ea10c95ba73d47ea9ce976;p=thirdparty%2Fsuricata.git smtp: reset current line len at start --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index f1aad6eece..1a94ba085b 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -1272,6 +1272,7 @@ static AppLayerResult SMTPParse(int direction, Flow *f, SMTPState *state, state->orig_input_len = input_len; state->input_len = input_len; state->consumed = 0; + state->current_line_len = 0; state->current_line_delimiter_len = 0; state->direction = direction; if (direction == 0) {