From: Ralf Haferkamp Date: Mon, 7 May 2007 14:55:45 +0000 (+0000) Subject: fix comparison with string literal X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~523 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f8c94e3155d6baf41b47a4a094d2fc15dc81307a;p=openldap fix comparison with string literal --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 1946b5ca51..e10cdac62b 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -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);