From: Howard Chu Date: Wed, 22 Jun 2011 00:05:53 +0000 (-0700) Subject: ITS#6817 fix RE24 build breakage X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ceefe132a8af19ee12fe0f072294ecce7bd3973b;p=openldap ITS#6817 fix RE24 build breakage Should SLAP_AUTH_DN be #defined in release now? --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 339b2a3e03..9ef163c879 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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 */