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.10.1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5efeccc10beccbf8d7700adec1278f97d416cbc6;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 5cca6c40fd..cf86f87336 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, if (string == NULL || *string == '\0') { *value_r = ""; - return 1; + return 0; } smtp_parser_init(&parser, pool_datastack_create(), string);