]> git.sur5r.net Git - openldap/commitdiff
ITS#3563 fix parseSubentries bug
authorKurt Zeilenga <kurt@openldap.org>
Tue, 15 Mar 2005 02:12:51 +0000 (02:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 15 Mar 2005 02:12:51 +0000 (02:12 +0000)
servers/slapd/controls.c

index cc0143fefd93cf4fdcc0f1eee44063035f48f74c..b8b18974fc8a9acaabcf24c2367509878e37be31 100644 (file)
@@ -1207,8 +1207,8 @@ static int parseSubentries (
 
        /* FIXME: should use BER library */
        if( ( ctrl->ldctl_value.bv_len != 3 )
-               && ( ctrl->ldctl_value.bv_val[0] != 0x01 )
-               && ( ctrl->ldctl_value.bv_val[1] != 0x01 ))
+               || ( ctrl->ldctl_value.bv_val[0] != 0x01 )
+               || ( ctrl->ldctl_value.bv_val[1] != 0x01 ))
        {
                rs->sr_text = "subentries control value encoding is bogus";
                return LDAP_PROTOCOL_ERROR;