From b2c2a1b95dcdd5aaa3e4b7c36c94a8ba8912a983 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 1 Jan 2016 22:18:24 +0100 Subject: resolved: dnssec - prepend hashed labels to zone name All hashed names consist of the hashed label prepended to the zone name, not to the closest enclosure. --- src/resolve/resolved-dns-dnssec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/resolve/resolved-dns-dnssec.c b/src/resolve/resolved-dns-dnssec.c index 564436551c..deb5e7384f 100644 --- a/src/resolve/resolved-dns-dnssec.c +++ b/src/resolve/resolved-dns-dnssec.c @@ -1328,7 +1328,7 @@ found_closest_encloser: if (!l) return -ENOMEM; - next_closer_domain = strjoin(l, ".", p, NULL); + next_closer_domain = strjoin(l, ".", zone, NULL); if (!next_closer_domain) return -ENOMEM; @@ -1345,7 +1345,7 @@ found_closest_encloser: if (!label) return -ENOMEM; - next_hashed_domain = strjoin(label, ".", p, NULL); + next_hashed_domain = strjoin(label, ".", zone, NULL); if (!next_hashed_domain) return -ENOMEM; -- cgit v1.2.3-54-g00ecf