From: Sven Wegener Date: Thu, 30 May 2024 09:02:34 +0000 (+0200) Subject: pdnsutil check-zone: make LUA records optional X-Git-Tag: rec-5.1.0-beta1~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14261%2Fhead;p=thirdparty%2Fpdns.git pdnsutil check-zone: make LUA records optional Merge #14011 added checking for LUA records to checkZone(), but LUA records depend on --enable-lua-records and the change causes a build error without. Signed-off-by: Sven Wegener --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 6bc3d443c6..c02b295d7a 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -378,6 +378,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con if(rr.qtype.getCode() == QType::A || rr.qtype.getCode() == QType::AAAA) { addresses.insert(rr.qname); } +#ifdef HAVE_LUA_RECORDS if(rr.qtype.getCode() == QType::LUA) { shared_ptr drc(DNSRecordContent::make(rr.qtype.getCode(), QClass::IN, rr.content)); auto luarec = std::dynamic_pointer_cast(drc); @@ -386,6 +387,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con addresses.insert(rr.qname); } } +#endif if(rr.qtype.getCode() == QType::A) { arecords.insert(rr.qname); }