From 851402961a9bb323cc4de5f14378c069a12255c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 16 Jan 2017 14:04:31 +0100 Subject: [PATCH] hints: make it work with non-lowercased hints https://forum.turris.cz/t/solved-hints-not-working-on-kresd/2974 --- modules/hints/hints.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/hints/hints.c b/modules/hints/hints.c index aa526a3ad..c1042adb3 100644 --- a/modules/hints/hints.c +++ b/modules/hints/hints.c @@ -242,6 +242,10 @@ static int add_pair(struct kr_zonecut *hints, const char *name, const char *addr if (!knot_dname_from_str(key, name, sizeof(key))) { return kr_error(EINVAL); } + int ret = knot_dname_to_lower(key); + if (ret) { + return ret; + } const knot_rdata_t *rdata = addr2rdata(addr); if (!rdata) { return kr_error(EINVAL); -- 2.47.3