From: Alan T. DeKok Date: Tue, 10 May 2011 15:16:23 +0000 (+0200) Subject: Build when there are no detail files X-Git-Tag: release_3_0_0_beta0~860 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6047e599759c7aa5679e59725f5f9bc86635e23e;p=thirdparty%2Ffreeradius-server.git Build when there are no detail files --- diff --git a/src/modules/rlm_realm/rlm_realm.c b/src/modules/rlm_realm/rlm_realm.c index ff662705b38..afb3d5913c1 100644 --- a/src/modules/rlm_realm/rlm_realm.c +++ b/src/modules/rlm_realm/rlm_realm.c @@ -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