Refactor varbind OID parsing into their indices. Simplifies the code by
authormartijn <martijn@openbsd.org>
Sat, 1 May 2021 16:44:17 +0000 (16:44 +0000)
committermartijn <martijn@openbsd.org>
Sat, 1 May 2021 16:44:17 +0000 (16:44 +0000)
commit0f9df26dc09c91041006f324c903f0cd1c3ccdfc
tree7f0bfee70b31814080e125cd02a8e24dfaf53186
parentf8e80a286197271066b5d619cc98d03fcebf5f81
Refactor varbind OID parsing into their indices.  Simplifies the code by
about 40 LoC and fixes a potential out of bounds read.

Bug found by bluhm@ on arm64 regress
OK bluhm@
lib/libagentx/agentx.c