In build_aspath() be more careful in the len == 0 case. For len == 0
authorclaudio <claudio@openbsd.org>
Thu, 12 Jan 2023 08:47:07 +0000 (08:47 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 12 Jan 2023 08:47:07 +0000 (08:47 +0000)
commit9043a9334fd1948142178fd719e83e363eae621b
tree1a4e3bad63531183a52ae872f8743237d2d39ed7
parent55822a5e82937857a4f69d39e6ed1b8db7a74a65
In build_aspath() be more careful in the len == 0 case. For len == 0
aspath->data should not be touched so just exit early.
While there also initalize source_as correctly in the rev case. This
does not matter here but is more correct.
Problem noticed by anton@
OK tb@
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c