Ignore post-proxy type if proxy is disabled
authorAlan T. DeKok <aland@freeradius.org>
Wed, 29 Sep 2010 13:47:28 +0000 (15:47 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 29 Sep 2010 13:50:50 +0000 (15:50 +0200)
src/main/modules.c

index 04a7d0b..accb8b9 100644 (file)
@@ -1099,8 +1099,8 @@ static int load_byserver(CONF_SECTION *cs)
                 *      proxying.
                 */
                if (!mainconfig.proxy_requests &&
-                   ((comp == PW_PRE_PROXY_TYPE) ||
-                    (comp == PW_PRE_PROXY_TYPE))) {
+                   ((comp == RLM_COMPONENT_PRE_PROXY) ||
+                    (comp == RLM_COMPONENT_POST_PROXY))) {
                        continue;
                }
 #endif