Mostly rewrite appl_request_upstream_reply.
authormartijn <martijn@openbsd.org>
Mon, 27 Jun 2022 10:31:17 +0000 (10:31 +0000)
committermartijn <martijn@openbsd.org>
Mon, 27 Jun 2022 10:31:17 +0000 (10:31 +0000)
commitf1f9290e87dce6493cb75dd3545a82bd98a825c0
treeb78c32cef79c865c66d920c6f143355c0420ab9e
parent002d07d7257242147ab6f3cd45990b0c17cc6d1e
Mostly rewrite appl_request_upstream_reply.
The old code had a potential off by one underflow, which is unlikely to be
hit with the current builtin backend, and didn't show the returned
varbindlist correct.

OK sthen@
usr.sbin/snmpd/application.c