]> git.sur5r.net Git - openldap/commitdiff
fix comparison with string literal
authorRalf Haferkamp <ralf@openldap.org>
Mon, 7 May 2007 14:55:45 +0000 (14:55 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Mon, 7 May 2007 14:55:45 +0000 (14:55 +0000)
servers/slapd/overlays/ppolicy.c

index 1946b5ca51caed506768b484e972867f1911828a..e10cdac62b3b624e84a10267ed1bbd34d95feec1 100644 (file)
@@ -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);