fixes for builds without TCP
authorAlan T. DeKok <aland@freeradius.org>
Fri, 2 Jun 2017 18:54:08 +0000 (14:54 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 2 Jun 2017 18:54:08 +0000 (14:54 -0400)
src/main/process.c
src/main/realms.c

index e3e32f4..016f8ba 100644 (file)
@@ -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
index d1fafcf..76a930e 100644 (file)
@@ -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: