imap.c: Fixed an incorrect variable reference
authorSteve Holme <steve_holme@hotmail.com>
Fri, 22 Feb 2013 19:58:42 +0000 (19:58 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 22 Feb 2013 19:58:42 +0000 (19:58 +0000)
Fixed an incorrect variable reference which was introduced in commit
a1701eea289f as a result of a copy and paste from SMTP/POP3.

lib/imap.c

index 0b7dbc3..8525c89 100644 (file)
@@ -378,7 +378,7 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
           wordlen++;
 
         /* Does the server support the STARTTLS capability? */
-        if(len >= 8 && !memcmp(line, "STARTTLS", 8))
+        if(wordlen >= 8 && !memcmp(line, "STARTTLS", 8))
           imapc->tls_supported = TRUE;
 
         /* Has the server explicitly disabled clear text authentication? */