]> git.sur5r.net Git - openldap/commitdiff
DNs may include NULs
authorPierangelo Masarati <ando@openldap.org>
Wed, 13 Feb 2002 19:18:31 +0000 (19:18 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 13 Feb 2002 19:18:31 +0000 (19:18 +0000)
servers/slapd/dn.c

index 3ba5acff7ac4a8ffc05a68c02b35a626060c761d..896419dfbc2602d9cbe34b678effb37c47d85dc0 100644 (file)
@@ -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