From 3fc5b5122485c8a1aa34dd27fe0135950a26a90a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 23 Aug 2019 11:12:48 +0200 Subject: [PATCH] Fix inverse handler registration logic for SNMP. --- pdns/rec-snmp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/rec-snmp.cc b/pdns/rec-snmp.cc index 45b48cea8d..536b597402 100644 --- a/pdns/rec-snmp.cc +++ b/pdns/rec-snmp.cc @@ -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)); -- 2.47.2