From 297e7d5d6d9a9710e2ad2e3aea01b7ea94c2afa8 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 27 Sep 2022 16:21:46 +0200 Subject: [PATCH] use at instead of [] Co-authored-by: Remi Gacogne --- pdns/syncres.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 54334fd4d1..443b94fd63 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1842,7 +1842,7 @@ int SyncRes::doResolveNoQNameMinimization(const DNSName &qname, const QType qtyp d_totUsec += lwr.d_usec; accountAuthLatency(lwr.d_usec, remoteIP.sin4.sin_family); - ++g_stats.authRCode[lwr.d_rcode]; + ++g_stats.authRCode.at(lwr.d_rcode); if (fromCache) *fromCache = true; @@ -5195,7 +5195,7 @@ bool SyncRes::doResolveAtThisIP(const std::string& prefix, const DNSName& qname, d_totUsec += lwr.d_usec; accountAuthLatency(lwr.d_usec, remoteIP.sin4.sin_family); - ++g_stats.authRCode[lwr.d_rcode]; + ++g_stats.authRCode.at(lwr.d_rcode); if (!dontThrottle) { auto dontThrottleNames = g_dontThrottleNames.getLocal(); -- 2.47.2