Be more careful with aspath that have 0 length (aka the empty AS_PATH).
authorclaudio <claudio@openbsd.org>
Tue, 10 Sep 2024 09:38:45 +0000 (09:38 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 10 Sep 2024 09:38:45 +0000 (09:38 +0000)
commite386eeb169001ba40fb5933f7e7f4e432772e268
tree06ebdb5f85300966f24acd1043bb34be70e164e3
parent07ef39656b1ad87dc7dc7993bbd6ca5d77575ba0
Be more careful with aspath that have 0 length (aka the empty AS_PATH).

Again malloc(0) is not portable and calling memcpy with a NULL pointer
and a 0 length is not allowed by the C standard.

OK tb@
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde_attr.c
usr.sbin/bgpd/rde_sets.c