From: Pierangelo Masarati Date: Sat, 20 Nov 2004 11:55:46 +0000 (+0000) Subject: fix ITS#3303 X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~262 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=40762c524a7610f5a9ffcddf28991a4e6ccd299d;p=openldap fix ITS#3303 --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 514c557692..259e7e8937 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -2492,9 +2492,14 @@ aci_mask( return 0; } + /* note: this may fail if a DN contains a valid '#' (unescaped) */ +#if 0 if ( aci_get_part( aci, 4, '#', &sdn ) < 0 ) { return 0; } +#endif + sdn.bv_val = type.bv_val + type.bv_len + STRLENOF( "#" ); + sdn.bv_len = aci->bv_len - ( sdn.bv_val - aci->bv_val ); if ( ber_bvstrcasecmp( &aci_bv_access_id, &type ) == 0 ) { struct berval ndn;