[PATCH 0/1] Patch for snmp_agent.c

Michael Schmidt via Net-snmp-coders <[email protected]> Fri, 28 Feb 2025 14:14:49 +0100
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Greetings net-snmp-devs,

this patch fixes an issue in the latest net-snmp version which inhibits the proper incrementation of snmpInTotalSetVars. (Issue: Net-SNMP V5.9.x: No increment of snmpInTotalSetVars #429)

It implements a temporary variable 'command' which is used to save the value of the command-pointer at the start of the if-case and later reused to compare if the issued command was a set or get request.

This prevents modifications of the command-pointer (snmp_agent.c, line 2017) impacting the proper incrementation of the statistic.


Kind regards,

Michael Schmidt

scmi (1):
  snmp_agent: Fixes incrementation of snmpInTotalSetVars

 agent/snmp_agent.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.39.5