]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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 e3e32f424b00f12f82e2d3b140f254e336a49514..016f8baf98842b066b50a8415844711089c1e03d 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 d1fafcf43f262e4930b588a3f0b625dc81a6667c..76a930e618be15296a167b6891d41aaa17964c72 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: