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



_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to