mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ctrls[] was initialized with which non-constants.
This commit is contained in:
parent
a632038df9
commit
c5d60fc043
@ -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 )) {
|
||||
|
Loading…
Reference in New Issue
Block a user