Fix dnIsSuffix to use berval len

This commit is contained in:
Howard Chu 2011-02-25 03:25:20 +00:00
parent db7304fc4e
commit 0109f871bf

View File

@ -1195,7 +1195,7 @@ dnIsSuffix(
} }
/* compare */ /* compare */
return( strcmp( dn->bv_val + d, suffix->bv_val ) == 0 ); return( strncmp( dn->bv_val + d, suffix->bv_val, suffix->bv_len ) == 0 );
} }
/* /*