Don't call agentx_reset on errors returned by the AgentX master.
authormartijn <martijn@openbsd.org>
Fri, 14 Oct 2022 15:20:33 +0000 (15:20 +0000)
committermartijn <martijn@openbsd.org>
Fri, 14 Oct 2022 15:20:33 +0000 (15:20 +0000)
commit8fea2aa46aedcb4f01bb4436c66b23cc0e41fd16
tree6f5835ef2f74102d16d2edb0dd3a82ff4defbad9
parentf2d2265f9f0e77eb20d09085f42f6136eb65080f
Don't call agentx_reset on errors returned by the AgentX 
There is no reason to assume that a reset of the connection and a retry
will solve the problem and could cause reconnect loops.

Found while playing with context in vmd in combination with snmpd(8)
instead of net-snmpd.

OK sthen@
lib/libagentx/agentx.c