]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Listeners only have nonblock options when built with TLS
authorNick Porter <nick@portercomputing.co.uk>
Fri, 19 Jul 2024 15:43:44 +0000 (16:43 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 19 Jul 2024 15:43:44 +0000 (16:43 +0100)
src/main/listen.c

index e27243d067dd4fb953bf71b65ce812f7899d0df0..2c045b99fdabe7284a924bab3090e6d42b601f83 100644 (file)
@@ -3585,7 +3585,9 @@ rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t
        if (home->proto == IPPROTO_TCP) {
                this->recv = proxy_socket_tcp_recv;
 
+#ifdef WITH_TLS
                this->nonblock |= home->nonblock;
+#endif
 
                /*
                 *      FIXME: connect() is blocking!