Blame SOURCES/dovecot-2.3.10-CVE_2020_10957p4.patch

311a5d
From 5efeccc10beccbf8d7700adec1278f97d416cbc6 Mon Sep 17 00:00:00 2001
311a5d
From: Stephan Bosch <stephan.bosch@open-xchange.com>
311a5d
Date: Tue, 24 Mar 2020 22:42:15 +0100
311a5d
Subject: [PATCH] lib-smtp: smtp-syntax - Return 0 for smtp_string_parse() with
311a5d
 empty input.
311a5d
311a5d
This is what the current users of this function actually expect.
311a5d
---
311a5d
 src/lib-smtp/smtp-syntax.c | 2 +-
311a5d
 1 file changed, 1 insertion(+), 1 deletion(-)
311a5d
311a5d
diff --git a/src/lib-smtp/smtp-syntax.c b/src/lib-smtp/smtp-syntax.c
311a5d
index 5cca6c40fd..cf86f87336 100644
311a5d
--- a/src/lib-smtp/smtp-syntax.c
311a5d
+++ b/src/lib-smtp/smtp-syntax.c
311a5d
@@ -23,7 +23,7 @@ int smtp_string_parse(const char *string,
311a5d
 
311a5d
 	if (string == NULL || *string == '\0') {
311a5d
 		*value_r = "";
311a5d
-		return 1;
311a5d
+		return 0;
311a5d
 	}
311a5d
 
311a5d
 	smtp_parser_init(&parser, pool_datastack_create(), string);