Commit 85140296 authored by Vladimír Čunát's avatar Vladimír Čunát

hints: make it work with non-lowercased hints
parent abeaa4c3
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment