From: Stephan Bosch Date: Tue, 24 Mar 2020 21:42:15 +0000 (+0100) Subject: lib-smtp: smtp-syntax - Return 0 for smtp_string_parse() with empty input. X-Git-Tag: 2.3.11.2~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4e4b47a9b064a0241afb1bf5836226b383cd3f5;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: smtp-syntax - Return 0 for smtp_string_parse() with empty input. This is what the current users of this function actually expect. --- diff --git a/src/lib-smtp/smtp-syntax.c b/src/lib-smtp/smtp-syntax.c index a8cead56c5..214df59fea 100644 --- a/src/lib-smtp/smtp-syntax.c +++ b/src/lib-smtp/smtp-syntax.c @@ -23,7 +23,7 @@ int smtp_string_parse(const char *string, const char **value_r, if (string == NULL || *string == '\0') { *value_r = ""; - return 1; + return 0; } smtp_parser_init(&parser, pool_datastack_create(), string);