[dovecot-cvs] dovecot/src/lib-imap imap-parser.c,1.21,1.22

cras at procontrol.fi cras at procontrol.fi
Sun Dec 1 20:00:06 EET 2002


Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv29676/lib-imap

Modified Files:
	imap-parser.c 
Log Message:
All SEARCH arguments still may not have been parsed.



Index: imap-parser.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-parser.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- imap-parser.c	30 Nov 2002 16:32:20 -0000	1.21
+++ imap-parser.c	1 Dec 2002 18:00:03 -0000	1.22
@@ -505,7 +505,7 @@
 		/* error, abort */
 		*args = NULL;
 		return -1;
-	} else if ((!IS_UNFINISHED(parser) &&
+	} else if ((!IS_UNFINISHED(parser) && count > 0 &&
 		    parser->root_list->size >= count) || parser->eol) {
 		/* all arguments read / end of line. ARG_PARSE_NONE checks
 		   that last argument isn't only partially parsed. */




More information about the dovecot-cvs mailing list