diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-10-18 19:28:20 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-10-18 19:28:20 +0100 |
commit | ce61510127ea60d6f7fb66bf2092c9a4728d3fe1 (patch) | |
tree | f3254891e54ef0de31210b06234ddc8799e73037 /lib/imap.c | |
parent | 86c64f3daf0079e96f4694b10fe1bc53944110fc (diff) |
email: Fixed QUIT / LOGOUT being sent when SSL connect fails
Diffstat (limited to 'lib/imap.c')
-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 9a845102a..864bb2270 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1982,7 +1982,7 @@ static CURLcode imap_disconnect(struct connectdata *conn, bool dead_connection) /* The IMAP session may or may not have been allocated/setup at this point! */ - if(!dead_connection && imapc->pp.conn) + if(!dead_connection && imapc->pp.conn && imapc->pp.conn->bits.protoconnstart) if(!imap_perform_logout(conn)) (void)imap_block_statemach(conn); /* ignore errors on LOGOUT */ |