From ceefe132a8af19ee12fe0f072294ecce7bd3973b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 21 Jun 2011 17:05:53 -0700 Subject: [PATCH] ITS#6817 fix RE24 build breakage Should SLAP_AUTH_DN be #defined in release now? --- servers/slapd/back-ldap/bind.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 */ -- 2.39.5