summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/hints/hints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hints/hints.c b/modules/hints/hints.c
index af05ee24..2195ca3a 100644
--- a/modules/hints/hints.c
+++ b/modules/hints/hints.c
@@ -282,7 +282,7 @@ static int del_pair(struct hints_data *data, const char *name, const char *addr)
return kr_error(EINVAL);
}
size_t key_len = knot_dname_size(key);
- if (kr_fails_assert(key_len <= INT_MAX))
+ if (kr_fails_assert(key_len <= KNOT_DNAME_MAXLEN))
return kr_error(EINVAL);
if (addr) {