fix off-by-one in bounds test
authorjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 00:54:14 +0000 (00:54 +0000)
committerjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 00:54:14 +0000 (00:54 +0000)
commitaea1f3b7ba8258c11a9a542454ee3edad2fb5c20
tree5f5bda29a37395a3ac0ee97cc0a4630df6d54668
parentb8e36cff4f6269663bab72388311c2ad7591bfa9
fix off-by-one in bounds test

found by "buffer overflow 'peerxfs' 6 <= 6" smatch error

tobhe@ had a remote peer attempt a transform type of 6 and it is caught
by earlier checks before getting here.

ok tobhe@
sbin/iked/policy.c