From: Alan T. DeKok Date: Fri, 7 Apr 2023 13:50:01 +0000 (-0400) Subject: give polite message about socket closing X-Git-Tag: release_3_2_3~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cafc0afa8fe7ea30055c6cd80a585a33ab3b96b;p=thirdparty%2Ffreeradius-server.git give polite message about socket closing --- diff --git a/src/main/tls_listen.c b/src/main/tls_listen.c index bf1dd18b83..e0a3fb9f14 100644 --- a/src/main/tls_listen.c +++ b/src/main/tls_listen.c @@ -1120,6 +1120,10 @@ static ssize_t proxy_tls_read(rad_listen_t *listener) do_close: return -1; + case SSL_ERROR_SSL: + DEBUG("(TLS) Home server has closed the connection"); + goto do_close; + default: tls_error_log(NULL, "Failed in proxy receive with OpenSSL error %d", err); goto do_close; @@ -1169,6 +1173,11 @@ static ssize_t proxy_tls_read(rad_listen_t *listener) /* remote end sent close_notify, send one back */ SSL_shutdown(sock->ssn->ssl); goto do_close; + + case SSL_ERROR_SSL: + DEBUG("(TLS) Home server has closed the connection"); + goto do_close; + default: DEBUG("(TLS) Unexpected OpenSSL error %d", err); goto do_close;