From: Otto Moerbeek Date: Tue, 27 Sep 2022 14:21:46 +0000 (+0200) Subject: use at instead of [] X-Git-Tag: rec-4.9.0-alpha0~20^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11949%2Fhead;p=thirdparty%2Fpdns.git use at instead of [] Co-authored-by: Remi Gacogne --- 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();