]> git.sur5r.net Git - openldap/commitdiff
ITS#7298 fix PermissiveModify control parsing
authorHoward Chu <hyc@openldap.org>
Fri, 15 Jun 2012 11:46:11 +0000 (04:46 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 15 Jun 2012 11:46:11 +0000 (04:46 -0700)
servers/slapd/controls.c

index e737afb043a8caeedd8ee14ec357b556c9477fb7..9d8a55fb93244a19c39c8a2a58d0691e6adfaddb 100644 (file)
@@ -1624,7 +1624,7 @@ static int parsePermissiveModify (
                return LDAP_PROTOCOL_ERROR;
        }
 
-       if ( BER_BVISNULL( &ctrl->ldctl_value )) {
+       if ( !BER_BVISNULL( &ctrl->ldctl_value )) {
                rs->sr_text = "permissiveModify control value not absent";
                return LDAP_PROTOCOL_ERROR;
        }