Rewrite the searchrange end calculation routine.
authormartijn <martijn@openbsd.org>
Wed, 31 Aug 2022 09:19:22 +0000 (09:19 +0000)
committermartijn <martijn@openbsd.org>
Wed, 31 Aug 2022 09:19:22 +0000 (09:19 +0000)
commitee42e1e9570ceb4becc60a40d343959762186a0e
tree4541b0e79aee33d3326fa1363cfa29bbd4e1f38e
parentce1ab8dd6b189cef03d158b4f8bc01c47d968db8
Rewrite the searchrange end calculation routine.
The old one had a bug which allowed it to move backwards on overlapping
regions and also didn't always returned the optimal end position.

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