]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If a client has a TLS config, use that in preference to the listener one
authorNick Porter <nick@portercomputing.co.uk>
Mon, 13 Jan 2025 17:38:58 +0000 (17:38 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 13 Jan 2025 17:38:58 +0000 (17:38 +0000)
src/main/listen.c

index 3ea74ce8dc2e98181b9b5ce2e1b810a0e9e31a50..b817248d71906f14efa7951157207268d268b104 100644 (file)
@@ -1269,6 +1269,7 @@ static int dual_tcp_accept(rad_listen_t *listener)
                this->recv = dual_tcp_recv;
 
 #ifdef WITH_TLS
+               if (client->tls) this->tls = client->tls;
                if (this->tls) {
                        this->recv = dual_tls_recv;
                        this->send = dual_tls_send;