aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-25 09:43:23 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-25 09:43:23 +0000
commite63c33d88d8c6fda91b11afe44e18fdb05b94c17 (patch)
tree22feabf6a710eef897f2be27f9deebe10ad218b1 /lib
parent94336d3c1e9f36dbbb1e4126d050ffb2d3f14bc9 (diff)
imap: Fixed incorrect comparison for STARTTLS in imap_endofresp()
Corrected the comparison type in addition to commit 1dac29fa83a9.
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 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? */