From 1dac29fa83a9ed1285faa7e06d42c7b4ffd98a62 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 22 Feb 2013 19:58:42 +0000 Subject: 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. --- lib/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/imap.c') 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? */ -- cgit v1.2.3