From: Otto Moerbeek Date: Fri, 23 Aug 2019 09:12:48 +0000 (+0200) Subject: Fix inverse handler registration logic for SNMP. X-Git-Tag: dnsdist-1.4.0-rc2~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8227%2Fhead;p=thirdparty%2Fpdns.git Fix inverse handler registration logic for SNMP. --- 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));