dovecot-2.2: lib-storage: Fixed parsing NILs in search parameters.

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 2 22:57:40 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/1e75d6c90c4a
changeset: 16921:1e75d6c90c4a
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 02 22:57:27 2013 +0200
description:
lib-storage: Fixed parsing NILs in search parameters.

diffstat:

 src/lib-storage/mail-search-parser-imap.c |  4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 1d7e2cee2c4b -r 1e75d6c90c4a src/lib-storage/mail-search-parser-imap.c
--- a/src/lib-storage/mail-search-parser-imap.c	Sat Nov 02 22:42:32 2013 +0200
+++ b/src/lib-storage/mail-search-parser-imap.c	Sat Nov 02 22:57:27 2013 +0200
@@ -26,8 +26,6 @@
 
 	switch (arg->type) {
 	case IMAP_ARG_NIL:
-		_parser->error = "Unexpected NIL";
-		return -1;
 	case IMAP_ARG_ATOM:
 		*key_r = imap_arg_as_astring(arg);
 		break;
@@ -67,8 +65,6 @@
 
 	switch (arg->type) {
 	case IMAP_ARG_NIL:
-		_parser->error = "Unexpected NIL";
-		return -1;
 	case IMAP_ARG_ATOM:
 	case IMAP_ARG_STRING:
 	case IMAP_ARG_LITERAL:


More information about the dovecot-cvs mailing list