mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix comparison with string literal
This commit is contained in:
parent
dda5e19904
commit
f8c94e3155
@ -850,7 +850,7 @@ ctrls_cleanup( Operation *op, SlapReply *rs, LDAPControl **oldctrls )
|
||||
assert( rs->sr_ctrls[0] != NULL );
|
||||
|
||||
for ( n = 0; rs->sr_ctrls[n]; n++ ) {
|
||||
if ( rs->sr_ctrls[n]->ldctl_oid == LDAP_CONTROL_PASSWORDPOLICYRESPONSE ) {
|
||||
if ( !strcmp( rs->sr_ctrls[n]->ldctl_oid, LDAP_CONTROL_PASSWORDPOLICYRESPONSE) ) {
|
||||
ch_free( rs->sr_ctrls[n]->ldctl_value.bv_val );
|
||||
ch_free( rs->sr_ctrls[n] );
|
||||
rs->sr_ctrls[n] = (LDAPControl *)(-1);
|
||||
|
Loading…
Reference in New Issue
Block a user