fix off-by-one in bounds check
authorjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 09:26:52 +0000 (09:26 +0000)
committerjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 09:26:52 +0000 (09:26 +0000)
commit4b4f2e389e0467247322328a17fc360342fb97b8
tree47844b43551e4e9d4546add58e1057a371991294
parent916d47d651323dc244f948cb3d82b01b465025a0
fix off-by-one in bounds check

found by "buffer overflow 'peer->capa.add_path' 7 <= 7" smatch error
ok claudio@
usr.sbin/bgpd/rde_peer.c