From 22f9be95d0f698064703ac13dcecc3f08aed78bf Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 3 Aug 2009 18:20:08 +0200 Subject: [PATCH] ensure we close the SSL connection if we get SSL_ERROR_ZERO_RETURN. --- src/network/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/connection.c b/src/network/connection.c index c722a82..0b6ea6f 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -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);