ensure we close the SSL connection if we get SSL_ERROR_ZERO_RETURN.

This commit is contained in:
Jan Vidar Krey 2009-08-03 18:20:08 +02:00
parent 4e43746c1b
commit 22f9be95d0
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ static int handle_openssl_error(struct net_connection* con, int ret)
{
case SSL_ERROR_ZERO_RETURN:
LOG_DEBUG("SSL_get_error: ret=%d, error=%d: SSL_ERROR_ZERO_RETURN", ret, error);
return ret;
return -1;
case SSL_ERROR_WANT_READ:
LOG_DEBUG("SSL_get_error: ret=%d, error=%d: SSL_ERROR_WANT_READ", ret, error);