]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp: do not return error on NULL buffer for end of stream
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 30 May 2024 19:48:52 +0000 (21:48 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 17 Jul 2024 04:13:39 +0000 (06:13 +0200)
src/app-layer-smtp.c

index b83ca0375ac9b1d9cd06fcdf4fc04ec6bc346660..3fedf307e1068c61b9de33a40302822abeb51274 100644 (file)
@@ -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 };