mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix dnIsSuffix to use berval len
This commit is contained in:
parent
db7304fc4e
commit
0109f871bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue