diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c index 5e845fb35..4191f5722 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -601,7 +601,8 @@ static CURLcode imap_state_servergreet_resp(struct connectdata *conn, to TLS connection now */ const char *str = getcmdid(conn); result = imap_sendf(conn, str, "%s STARTTLS", str); - state(conn, IMAP_STARTTLS); + if(!result) + state(conn, IMAP_STARTTLS); } else result = imap_state_capability(conn); |