aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-22 19:58:42 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-22 19:58:42 +0000
commit1dac29fa83a9ed1285faa7e06d42c7b4ffd98a62 (patch)
treed97230234a4198c0637cf173e8cf2075b7a6763a /lib
parentcd65ecb2e8a6d4c65be9e5f08e36ed4960c3bf0f (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c2
1 files changed, 1 insertions, 1 deletions
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? */