From: Howard Chu Date: Fri, 25 Feb 2011 03:25:20 +0000 (+0000) Subject: Fix dnIsSuffix to use berval len X-Git-Tag: MIGRATION_CVS2GIT~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0109f871bf9399a1542627fe64cb724c9812e3a4;p=openldap Fix dnIsSuffix to use berval len --- 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 ); } /*