From: Timo Sirainen Date: Sat, 2 Nov 2013 23:12:24 +0000 (+0200) Subject: lib-imap: imap_arg_get_atom() should also treat NIL as valid atom. X-Git-Tag: 2.2.7~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=333b1f356e437f17d843fcbe529d6ac5915a64f5;p=thirdparty%2Fdovecot%2Fcore.git lib-imap: imap_arg_get_atom() should also treat NIL as valid atom. --- diff --git a/src/lib-imap/imap-arg.c b/src/lib-imap/imap-arg.c index 902ba2ccef..80eda659d4 100644 --- a/src/lib-imap/imap-arg.c +++ b/src/lib-imap/imap-arg.c @@ -5,7 +5,7 @@ bool imap_arg_get_atom(const struct imap_arg *arg, const char **str_r) { - if (arg->type != IMAP_ARG_ATOM) + if (arg->type != IMAP_ARG_ATOM && arg->type != IMAP_ARG_NIL) return FALSE; *str_r = arg->_data.str;