From: Hallvard Furuseth Date: Fri, 2 May 2003 13:26:25 +0000 (+0000) Subject: ctrls[] was initialized with which non-constants. X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c5d60fc0435a9c2f6a244f07029545f3227a40d0;p=openldap ctrls[] was initialized with which non-constants. --- 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 )) {