]> git.sur5r.net Git - openldap/commitdiff
Make sure hdb gets signed chars for len comparison
authorHoward Chu <hyc@openldap.org>
Sun, 18 Jul 2004 12:29:52 +0000 (12:29 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 18 Jul 2004 12:29:52 +0000 (12:29 +0000)
servers/slapd/back-bdb/dn2id.c

index 6ab0a037808959893e4b670b0336bab25cfce9be..2bb31dcd46eb70510b19f3a024e970e00ab44076 100644 (file)
@@ -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 */