]> git.sur5r.net Git - openldap/commitdiff
ctrls[] was initialized with which non-constants.
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 2 May 2003 13:26:25 +0000 (13:26 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 2 May 2003 13:26:25 +0000 (13:26 +0000)
servers/slapd/back-ldap/config.c

index 3c997e7e79658d95b953d69a90874e21ed6da155..c82b410c1fd062b0ae7a369bf50aa77578e210de 100644 (file)
@@ -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 )) {