From 26b475893891e626b6e096bcc6c8c350fbe1e16d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 18 Jul 2004 12:29:52 +0000 Subject: [PATCH] Make sure hdb gets signed chars for len comparison --- servers/slapd/back-bdb/dn2id.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 6ab0a03780..2bb31dcd46 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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 */ -- 2.39.5