diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index e5e55f7ac8..74bd594e76 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -1195,7 +1195,7 @@ dnIsSuffix( } /* compare */ - return( strcmp( dn->bv_val + d, suffix->bv_val ) == 0 ); + return( strncmp( dn->bv_val + d, suffix->bv_val, suffix->bv_len ) == 0 ); } /*