]> git.sur5r.net Git - openldap/commitdiff
fix group/role check (should address ITS#4106)
authorPierangelo Masarati <ando@openldap.org>
Wed, 9 Nov 2005 16:33:51 +0000 (16:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 9 Nov 2005 16:33:51 +0000 (16:33 +0000)
servers/slapd/aci.c

index a77a9fb3ceefedb1667701975ef8556f5f6ac143..7f23b4363b3cc89f2d71d9636b5ae244efe0cef7 100644 (file)
@@ -1487,6 +1487,7 @@ OpenLDAPaciPrettyNormal(
                                bv.bv_len = ntype.bv_len;
 
                                ocbv.bv_val++;
+                               ocbv.bv_len = type.bv_len - ( ocbv.bv_val - type.bv_val );
 
                                atbv.bv_val = strchr( ocbv.bv_val, '/' );
                                if ( atbv.bv_val != NULL