]> granicus.if.org Git - curl/commit
imap.c: Fixed failure detection during TLS upgrade
authorSteve Holme <steve_holme@hotmail.com>
Thu, 24 Jan 2013 20:22:20 +0000 (20:22 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Thu, 24 Jan 2013 20:22:20 +0000 (20:22 +0000)
commit379d63ecc7e361fcfea5ef40881307b497e0c625
treed991917eee1a88904bb74dfe7d8a8de9236321fa
parentb1826d81fb2d2203bed758c50391b30bfb67d368
imap.c: Fixed failure detection during TLS upgrade

imap_state_upgrade_tls() would attempt to incorrectly complete the
upgrade to imaps and start the CAPABILITY command if
Curl_ssl_connect_nonblocking() returned a failure code and if ssldone
was set to TRUE. This would only happen when a non-blocking API hadn't
been provided by the SSL implementation and curlssl_connect() was
called underneath.
lib/imap.c