pop3.c: Fixed failure detection during TLS upgrade
authorSteve Holme <steve_holme@hotmail.com>
Thu, 24 Jan 2013 20:24:39 +0000 (20:24 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Thu, 24 Jan 2013 20:24:39 +0000 (20:24 +0000)
commit8b275718e225c67bf21e078775f005d56f122589
treef665d779fbc748f5eeaaf696ea3e5b5d765042c6
parent379d63ecc7e361fcfea5ef40881307b497e0c625
pop3.c: Fixed failure detection during TLS upgrade

pop3_state_upgrade_tls() would attempt to incorrectly complete the
upgrade to pop3s and start the CAPA 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/pop3.c