]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 22 Jun 2012 16:26:04 +0000 (09:26 -0700)
servers/slapd/controls.c

index 54447b830b397763c3779b30750dfde84058da4f..6caa711acec2dc7c9eb513099ba8487330497485 100644 (file)
@@ -1613,7 +1613,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;
        }