reauth-specific hack should be conditional on reauth being enabled
authorLuke Howard <lukeh@padl.com>
Fri, 20 May 2011 08:04:22 +0000 (10:04 +0200)
committerLuke Howard <lukeh@padl.com>
Fri, 20 May 2011 08:04:22 +0000 (10:04 +0200)
moonshot/mech_eap/util_radius.cpp

index 0ab02b9..9769287 100644 (file)
@@ -490,11 +490,11 @@ gss_eap_radius_attr_provider::releaseAnyNameMapping(gss_buffer_t type_id GSSEAP_
 bool
 gss_eap_radius_attr_provider::init(void)
 {
-    struct rs_context *radContext;
-
     gss_eap_attr_ctx::registerProvider(ATTR_TYPE_RADIUS, createAttrContext);
 
-#if 1
+#ifdef GSSEAP_ENABLE_REAUTH
+    struct rs_context *radContext;
+
     /*
      * This hack is necessary in order to force the loading of the global
      * dictionary, otherwise accepting reauthentication tokens fails unless