aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/validator/val_nsec3.c
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/validator/val_nsec3.c')
-rw-r--r--external/unbound/validator/val_nsec3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/unbound/validator/val_nsec3.c b/external/unbound/validator/val_nsec3.c
index fe5091c0a..548daf2bf 100644
--- a/external/unbound/validator/val_nsec3.c
+++ b/external/unbound/validator/val_nsec3.c
@@ -731,8 +731,8 @@ label_compare_lower(uint8_t* lab1, uint8_t* lab2, size_t lablen)
{
size_t i;
for(i=0; i<lablen; i++) {
- if(tolower((int)*lab1) != tolower((int)*lab2)) {
- if(tolower((int)*lab1) < tolower((int)*lab2))
+ if(tolower((unsigned char)*lab1) != tolower((unsigned char)*lab2)) {
+ if(tolower((unsigned char)*lab1) < tolower((unsigned char)*lab2))
return -1;
return 1;
}