In appl_processpdu() no need to set avi_next, and only set av_next up
authormartijn <martijn@openbsd.org>
Thu, 16 Nov 2023 14:35:25 +0000 (14:35 +0000)
committermartijn <martijn@openbsd.org>
Thu, 16 Nov 2023 14:35:25 +0000 (14:35 +0000)
commit80990c3a670d56505b23376f9793c486ca290616
tree44fb0b86365eeeeec5e6b671f08ba095c3dad79d
parentf750515ae283029a5d388ac61a0e186f76d13877
In appl_processpdu() no need to set avi_next, and only set av_next up
to varbindlen, since its only use is to print the varbindlist via
appl_pdu_log() and both are further properly initialized in
appl_request_upstream_resolve().

This fixes a cosmetic off by one for getbulk requests.

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