From: Alan T. DeKok Date: Fri, 2 Jun 2017 18:54:08 +0000 (-0400) Subject: fixes for builds without TCP X-Git-Tag: release_3_0_15~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55a2f70ea3b7c99fa613d0b77d450e77a7ef9f7c;p=thirdparty%2Ffreeradius-server.git fixes for builds without TCP --- diff --git a/src/main/process.c b/src/main/process.c index e3e32f424b0..016f8baf988 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -5321,7 +5321,9 @@ static void check_proxy(rad_listen_t *head) if (check_config) return; if (!main_config.proxy_requests) return; if (!head) return; +#ifdef WITH_TCP if (!home_servers_udp) return; +#endif /* * We passed "-i" on the command line. Use that address diff --git a/src/main/realms.c b/src/main/realms.c index d1fafcf43f2..76a930e618b 100644 --- a/src/main/realms.c +++ b/src/main/realms.c @@ -767,7 +767,9 @@ home_server_t *home_server_afrom_cs(TALLOC_CTX *ctx, realm_config_t *rc, CONF_SE switch (proto) { case IPPROTO_UDP: +#ifdef WITH_TCP home_servers_udp = true; +#endif break; case IPPROTO_TCP: