mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Make sure hdb gets signed chars for len comparison
This commit is contained in:
parent
af5ab4f196
commit
26b4758938
@ -517,8 +517,8 @@ hdb_dup_compare(
|
||||
const DBT *usrkey,
|
||||
const DBT *curkey )
|
||||
{
|
||||
char *u = (char *)&(((diskNode *)(usrkey->data))->nrdnlen);
|
||||
char *c = (char *)&(((diskNode *)(curkey->data))->nrdnlen);
|
||||
signed char *u = (signed char *)&(((diskNode *)(usrkey->data))->nrdnlen);
|
||||
signed char *c = (signed char *)&(((diskNode *)(curkey->data))->nrdnlen);
|
||||
int rc, i;
|
||||
|
||||
/* data is not aligned, cannot compare directly */
|
||||
|
Loading…
Reference in New Issue
Block a user