]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Build when there are no detail files
authorAlan T. DeKok <aland@freeradius.org>
Tue, 10 May 2011 15:16:23 +0000 (17:16 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 10 May 2011 15:16:23 +0000 (17:16 +0200)
src/modules/rlm_realm/rlm_realm.c

index ff662705b38d6bdaf1d66027fc728223e837ffdf..afb3d5913c1ea062ff2eda3d10b791e58131d240 100644 (file)
@@ -293,9 +293,9 @@ static int check_for_realm(void *instance, REQUEST *request, REALM **returnrealm
                 *      See detail_recv() in src/main/listen.c for the
                 *      additional checks.
                 */
+#ifdef WITH_DETAIL
        } else if ((request->listener->type == RAD_LISTEN_DETAIL) &&
-                  ((request->packet->src_ipaddr.af == AF_INET6) ||
-                   (request->packet->src_ipaddr.ipaddr.ip4addr.s_addr != htonl(INADDR_NONE)))) {
+                  !fr_inaddr_any(&request->packet->src_ipaddr)) {
                int i;
 
                /*
@@ -313,9 +313,9 @@ static int check_for_realm(void *instance, REQUEST *request, REALM **returnrealm
                                return RLM_MODULE_OK;
                        }
                }
-
+#endif /* WITH_DETAIL */
        }
-#endif
+#endif /* WITH_PROXY */
 
        /*
         *      We got this far, which means we have a realm, set returnrealm