From: Alan T. DeKok Date: Fri, 20 Oct 2017 17:57:17 +0000 (-0400) Subject: removed dead code. CID #1414429 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9e8baad4cd7ffce2c9316cc664006450454f382;p=thirdparty%2Ffreeradius-server.git removed dead code. CID #1414429 --- diff --git a/src/main/auth.c b/src/main/auth.c index 62a69001a83..808f0d55c82 100644 --- a/src/main/auth.c +++ b/src/main/auth.c @@ -464,43 +464,6 @@ autz_redo: } } - /* - * If we haven't already proxied the packet, then check - * to see if we should. Maybe one of the authorize - * modules has decided that a proxy should be used. If - * so, get out of here and send the packet. - */ - if ( -#ifdef WITH_PROXY - (request->proxy == NULL) && -#endif - ((tmp = fr_pair_find_by_num(request->control, 0, FR_PROXY_TO_REALM, TAG_ANY)) != NULL)) { - REALM *realm; - - realm = NULL; - - /* - * Don't authenticate, as the request is going to - * be proxied. - */ - if (realm && realm->auth_pool) { - return RLM_MODULE_OK; - } - - /* - * Catch users who set Proxy-To-Realm to a LOCAL - * realm (sigh). But don't complain if it is - * *the* LOCAL realm. - */ - if (realm &&(strcmp(realm->name, "LOCAL") != 0)) { - RWDEBUG2("You set Proxy-To-Realm = %s, but it is a LOCAL realm! Cancelling proxy request.", realm->name); - } - - if (!realm) { - RWDEBUG2("You set Proxy-To-Realm = %s, but the realm does not exist! Cancelling invalid proxy request.", tmp->vp_strvalue); - } - } - #ifdef WITH_PROXY authenticate: #endif