]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
give polite message about socket closing
authorAlan T. DeKok <aland@freeradius.org>
Fri, 7 Apr 2023 13:50:01 +0000 (09:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 7 Apr 2023 13:50:01 +0000 (09:50 -0400)
src/main/tls_listen.c

index bf1dd18b834469a78e361edb76d65f788aec8384..e0a3fb9f14a1f54c42d05d546ae93041acfd14d9 100644 (file)
@@ -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;