rde_update_get_prefix() and friends should also verify the prefixlen.
authorclaudio <claudio@openbsd.org>
Tue, 10 Jul 2018 15:13:35 +0000 (15:13 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 10 Jul 2018 15:13:35 +0000 (15:13 +0000)
commita1df10e47e225f6ac98603041370ff02a4c03516
treedda41ba2d424d4d9bb3f5d4695dbfa3de8baedd8
parent423db67a621057292d9f3eba7169ed90a73fca37
rde_update_get_prefix() and friends should also verify the prefixlen.
This way the check can be removed from rde_update_dispatch() which is
just a duplicate of the general failure case of rde_update_get_prefix().
OK benno@ phessler@
usr.sbin/bgpd/rde.c