dovecot-2.2: lib-imap: IMAP protocol parser was parsing NIL case...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Nov 2 21:30:00 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/09d5728a69d1
changeset: 16914:09d5728a69d1
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 02 20:05:08 2013 +0200
description:
lib-imap: IMAP protocol parser was parsing NIL case-sensitively.
Luckily no commands currently actually use NILs.
diffstat:
src/lib-imap/imap-parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c472e0454ee3 -r 09d5728a69d1 src/lib-imap/imap-parser.c
--- 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 {
More information about the dovecot-cvs
mailing list