From: Remi Gacogne Date: Mon, 3 Jul 2023 18:08:36 +0000 (+0200) Subject: auth: Simplify the SQL upgrade condition X-Git-Tag: rec-5.0.0-alpha1~128^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12776%2Fhead;p=thirdparty%2Fpdns.git auth: Simplify the SQL upgrade condition --- diff --git a/pdns/backends/gsql/gsqlbackend.cc b/pdns/backends/gsql/gsqlbackend.cc index 4143f99dfe..61d7ea08a8 100644 --- a/pdns/backends/gsql/gsqlbackend.cc +++ b/pdns/backends/gsql/gsqlbackend.cc @@ -2156,7 +2156,7 @@ void GSQLBackend::extractRecord(SSqlStatement::row_t& row, DNSResourceRecord& r) r.qtype=row[3]; - if (d_upgradeContent && DNSRecordContent::isUnknownType(row[3]) && r.qtype.isSupportedType() && !r.qtype.isMetadataType() && DNSRecordContent::isRegisteredType(r.qtype, r.qclass) && r.qtype != QType::NSEC && r.qtype != QType::NSEC3 && r.qtype != QType::ANY) { + if (d_upgradeContent && DNSRecordContent::isUnknownType(row[3]) && DNSRecordContent::isRegisteredType(r.qtype, r.qclass)) { r.content = DNSRecordContent::upgradeContent(r.qname, r.qtype, row[0]); } else if (r.qtype==QType::MX || r.qtype==QType::SRV) {