aspath_inflate() can be called with an empty ASPATH.
authorclaudio <claudio@openbsd.org>
Fri, 2 Feb 2024 16:14:51 +0000 (16:14 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 2 Feb 2024 16:14:51 +0000 (16:14 +0000)
commit4ac10ff8d870014563c5645da49818daa845367b
tree080f44225152fbb02852778c96de689439136562
parente83bb2c891bcc0d0b4fa02895d547db569435365
aspath_inflate() can be called with an empty ASPATH.

In this case ibuf_size(in) is 0 and the ibuf_open() fails because
right now 0 sized ibufs are not allowed. Add + 1 to the size calculation
as a workaround.
OK tb@
usr.sbin/bgpd/util.c