changeset 16914:09d5728a69d1

lib-imap: IMAP protocol parser was parsing NIL case-sensitively. Luckily no commands currently actually use NILs.
author Timo Sirainen <tss@iki.fi>
date Sat, 02 Nov 2013 20:05:08 +0200
parents c472e0454ee3
children 0c4ee3b9fa3b
files src/lib-imap/imap-parser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-imap/imap-parser.c	Sat Nov 02 15:30:47 2013 +0200
+++ b/src/lib-imap/imap-parser.c	Sat Nov 02 20:05:08 2013 +0200
@@ -233,7 +233,7 @@
 	switch (parser->cur_type) {
 	case ARG_PARSE_ATOM:
 	case ARG_PARSE_TEXT:
-		if (size == 3 && memcmp(data, "NIL", 3) == 0) {
+		if (size == 3 && i_memcasecmp(data, "NIL", 3) == 0) {
 			/* NIL argument */
 			arg->type = IMAP_ARG_NIL;
 		} else {