diff options
-rw-r--r-- | lib/imap.c | 2 |
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? */ |