]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/imap/serv_imap.c
IMAP memory issues with use of ConstStr
[citadel.git] / citadel / server / modules / imap / serv_imap.c
index fd0b93dd60218eb48043af23b3459a7e8b2537b2..30e7b2587382e2123c87465f8c0f9eeddc53dedc 100644 (file)
@@ -555,7 +555,7 @@ void imap_login(int num_parms, ConstStr *Params) {
 
        switch (num_parms) {
        case 3:
-               if (Params[2].Key[0] == '{') {
+               if (Params[2].len && (Params[2].Key[0] == '{')) {
                        IAPuts("+ go ahead\r\n");
                        IMAP->authstate = imap_as_expecting_multilineusername;
                        strcpy(IMAP->authseq, Params[0].Key);