From: Remi Gacogne Date: Mon, 5 Jul 2021 16:00:37 +0000 (+0200) Subject: rec: Fix NSEC3 next owner in SyncRes unit tests X-Git-Tag: dnsdist-1.7.0-alpha1~84^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95f79e18e5fd5bf62970d024810d52e1bf0cd687;p=thirdparty%2Fpdns.git rec: Fix NSEC3 next owner in SyncRes unit tests --- diff --git a/pdns/recursordist/test-syncres_cc.cc b/pdns/recursordist/test-syncres_cc.cc index 858ebaa9b9..6a94f060e3 100644 --- a/pdns/recursordist/test-syncres_cc.cc +++ b/pdns/recursordist/test-syncres_cc.cc @@ -487,7 +487,9 @@ LWResult::Result genericDSAndDNSKEYHandler(LWResult* res, const DNSName& domain, addNSECRecordToLW(domain, DNSName("+") + domain, types, 600, res->d_records); } else { - addNSEC3UnhashedRecordToLW(domain, auth, (DNSName("z") + domain).toString(), types, 600, res->d_records, 10, optOut); + DNSName next(DNSName("z") + domain); + next.makeUsRelative(auth); + addNSEC3UnhashedRecordToLW(domain, auth, next.toString(), types, 600, res->d_records, 10, optOut); } addRRSIG(keys, res->d_records, auth, 300, false, boost::none, boost::none, now);