]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#6817 fix RE24 build breakage
authorHoward Chu <hyc@openldap.org>
Wed, 22 Jun 2011 00:05:53 +0000 (17:05 -0700)
committerHoward Chu <hyc@openldap.org>
Wed, 22 Jun 2011 00:05:53 +0000 (17:05 -0700)
Should SLAP_AUTH_DN be #defined in release now?

servers/slapd/back-ldap/bind.c

index 339b2a3e03df1b67a885e5042bf8f0d5c97e305c..9ef163c879d61cca0c537fed119f413947bfc518 100644 (file)
@@ -2209,12 +2209,13 @@ ldap_back_proxy_authz_bind(
                void            *defaults = NULL;
                struct berval   authzID = BER_BVNULL;
                int             freeauthz = 0;
-
-#ifdef SLAP_AUTH_DN
-               LDAPControl ctrl, *ctrls[2], **ctrlsp = NULL;
+               LDAPControl **ctrlsp = NULL;
                LDAPMessage *result = NULL;
                const char *rmech = NULL;
                const char *save_text = rs->sr_text;
+
+#ifdef SLAP_AUTH_DN
+               LDAPControl ctrl, *ctrls[2];
                int msgid;
 #endif /* SLAP_AUTH_DN */