From: Otto Moerbeek Date: Tue, 18 Jul 2023 08:11:19 +0000 (+0200) Subject: Update pdns/recursordist/pdns_recursor.cc X-Git-Tag: rec-5.0.0-alpha1~95^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13043%2Fhead;p=thirdparty%2Fpdns.git Update pdns/recursordist/pdns_recursor.cc Co-authored-by: Peter van Dijk --- diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index e0f78da2e3..677bf39d97 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -776,7 +776,7 @@ int getFakePTRRecords(const DNSName& qname, vector& ret) record.d_name = qname; record.d_type = QType::CNAME; record.setContent(std::make_shared(newquery)); - // Copy the TTL of the synhtesized CNAME from the actual answer + // Copy the TTL of the synthesized CNAME from the actual answer record.d_ttl = (rcode == RCode::NoError && !answers.empty()) ? answers.at(0).d_ttl : SyncRes::s_minimumTTL; ret.push_back(record);