From: Otto Moerbeek Date: Thu, 23 Oct 2025 14:13:23 +0000 (+0200) Subject: Tidy X-Git-Tag: rec-5.4.0-alpha1~103^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e00306270eeeb1e53fd94d0287ab81a68bea4b;p=thirdparty%2Fpdns.git Tidy Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index fb78da262f..dc3bed6a89 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -2148,7 +2148,7 @@ bool expectProxyProtocol(const ComboAddress& from, const ComboAddress& listenAdd bool matchOTConditions(const std::unique_ptr& conditions, const ComboAddress& source) { - if (conditions == nullptr || conditions->size() == 0) { + if (conditions == nullptr || conditions->empty()) { return false; } if (auto const* match = conditions->lookup(source); match != nullptr) { @@ -2162,7 +2162,7 @@ bool matchOTConditions(const std::unique_ptr& cond bool matchOTConditions(RecEventTrace& eventTrace, const std::unique_ptr& conditions, const ComboAddress& source, const DNSName& qname, QType qtype, uint16_t qid, bool edns_option_present) { - if (conditions == nullptr || conditions->size() == 0) { + if (conditions == nullptr || conditions->empty()) { return false; } if (auto const* match = conditions->lookup(source); match != nullptr) {