From c5d60fc0435a9c2f6a244f07029545f3227a40d0 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 2 May 2003 13:26:25 +0000 Subject: [PATCH] ctrls[] was initialized with which non-constants. --- servers/slapd/back-ldap/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index 3c997e7e79..c82b410c1f 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -431,11 +431,12 @@ ldap_back_exop_whoami( if ( op->o_conn->c_authz_backend && !strcmp(op->o_conn->c_authz_backend->be_type, "ldap" ) && !dn_match(&op->o_ndn, &op->o_conn->c_ndn)) { struct ldapconn *lc; - LDAPControl c, *ctrls[2] = {&c, NULL}; + LDAPControl c, *ctrls[2] = {NULL, NULL}; LDAPMessage *res; Operation op2 = *op; ber_int_t msgid; + ctrls[0] = &c; op2.o_ndn = op->o_conn->c_ndn; lc = ldap_back_getconn(&op2, rs); if (!lc || !ldap_back_dobind( lc, op, rs )) { -- 2.39.5