From: Steve Holme Date: Mon, 25 Feb 2013 09:43:23 +0000 (+0000) Subject: imap: Fixed incorrect comparison for STARTTLS in imap_endofresp() X-Git-Tag: curl-7_30_0~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e63c33d88d8c6fda91b11afe44e18fdb05b94c17;p=curl imap: Fixed incorrect comparison for STARTTLS in imap_endofresp() Corrected the comparison type in addition to commit 1dac29fa83a9. --- diff --git a/lib/imap.c b/lib/imap.c index 5d94548a3..8f1112d36 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -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? */