]> granicus.if.org Git - curl/commitdiff
imap: Fixed incorrect comparison for STARTTLS in imap_endofresp()
authorSteve Holme <steve_holme@hotmail.com>
Mon, 25 Feb 2013 09:43:23 +0000 (09:43 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Mon, 25 Feb 2013 09:43:23 +0000 (09:43 +0000)
Corrected the comparison type in addition to commit 1dac29fa83a9.

lib/imap.c

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