]> granicus.if.org Git - pdns/commitdiff
Fix inverse handler registration logic for SNMP.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 23 Aug 2019 09:12:48 +0000 (11:12 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 23 Aug 2019 09:17:50 +0000 (11:17 +0200)
pdns/rec-snmp.cc

index 45b48cea8deb9dc598866ff423ac1de39cf74550..536b597402b590c6d202acd5121b8a06c87f6e69 100644 (file)
@@ -179,7 +179,8 @@ static void registerCounter64Stat(const std::string& name, const oid statOID[],
 
   s_statsMap[statOID[statOIDLength - 1]] = name.c_str();
   netsnmp_register_scalar(netsnmp_create_handler_registration(name.c_str(),
-                                                              isStatBlacklisted(StatComponent::SNMP, name) ? handleCounter64Stats : handleDisabledCounter64Stats,
+                                                              isStatBlacklisted(StatComponent::SNMP, name) ?
+                                                              handleDisabledCounter64Stats : handleCounter64Stats,
                                                               statOID,
                                                               statOIDLength,
                                                               HANDLER_CAN_RONLY));