mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
Fix dnIsSuffix to use berval len
This commit is contained in:
parent
db7304fc4e
commit
0109f871bf
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user