# HG changeset patch # User Timo Sirainen # Date 1567061725 -10800 # Node ID c1d36f2575c730f15e3e9618ac1c625524a510d8 # Parent d133ed304c89640fa5989de96a471402798eb087 lib-imap: Fix "Don't accept strings with NULs" cherry-pick diff -r d133ed304c89 -r c1d36f2575c7 src/lib-imap/imap-parser.c --- a/src/lib-imap/imap-parser.c Fri May 17 10:33:53 2019 +0300 +++ b/src/lib-imap/imap-parser.c Thu Aug 29 09:55:25 2019 +0300 @@ -349,8 +349,7 @@ } if (data[i] == '\0') { - parser->error = IMAP_PARSE_ERROR_BAD_SYNTAX; - parser->error_msg = "NULs not allowed in strings"; + parser->error = "NULs not allowed in strings"; return FALSE; }