From: Pierangelo Masarati Date: Wed, 13 Feb 2002 19:18:31 +0000 (+0000) Subject: DNs may include NULs X-Git-Tag: OPENLDAP_REL_ENG_2_1_BP~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3cc674589db9aa05ddf433f5d53ad3364e723890;p=openldap DNs may include NULs --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 3ba5acff7a..896419dfbc 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -572,7 +572,8 @@ dnMatch( match = value->bv_len - asserted->bv_len; if ( match == 0 ) { - match = strcmp( value->bv_val, asserted->bv_val ); + match = memcmp( value->bv_val, asserted->bv_val, + value->bv_len ); } #ifdef NEW_LOGGING