]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
use at instead of [] 11949/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Sep 2022 14:21:46 +0000 (16:21 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Sep 2022 14:32:41 +0000 (16:32 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/syncres.cc

index 54334fd4d11184c3ec98adbe1611f40c8d5f271d..443b94fd63e9d0056dc602ab8fe918cb55af6a19 100644 (file)
@@ -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();