From: Philippe Antoine Date: Thu, 30 May 2024 19:48:52 +0000 (+0200) Subject: smtp: do not return error on NULL buffer for end of stream X-Git-Tag: suricata-8.0.0-beta1~1002 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac9cd959fa7c4ef7761f8468808d361ae2bbfbb;p=thirdparty%2Fsuricata.git smtp: do not return error on NULL buffer for end of stream --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index b83ca0375a..3fedf307e1 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -1395,7 +1395,7 @@ static AppLayerResult SMTPParse(uint8_t direction, Flow *f, SMTPState *state, AppLayerParserStateIssetFlag(pstate, APP_LAYER_PARSER_EOF_TC)))) { SCReturnStruct(APP_LAYER_OK); } else if (input_buf == NULL || input_len == 0) { - SCReturnStruct(APP_LAYER_ERROR); + SCReturnStruct(APP_LAYER_OK); } SMTPInput input = { .buf = input_buf, .len = input_len, .orig_len = input_len, .consumed = 0 };