From: Steve Holme Date: Fri, 22 Feb 2013 19:58:42 +0000 (+0000) Subject: imap.c: Fixed an incorrect variable reference X-Git-Tag: curl-7_30_0~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dac29fa83a9ed1285faa7e06d42c7b4ffd98a62;p=curl imap.c: Fixed an incorrect variable reference Fixed an incorrect variable reference which was introduced in commit a1701eea289f as a result of a copy and paste from SMTP/POP3. --- diff --git a/lib/imap.c b/lib/imap.c index 0b7dbc391..8525c89be 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -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? */