mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix comparison with string literal
This commit is contained in:
parent
dda5e19904
commit
f8c94e3155
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue