Neither sin_len nor sin6_len can be 0 so these checks are not needed.
authorclaudio <claudio@openbsd.org>
Tue, 17 Oct 2023 17:59:59 +0000 (17:59 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 17 Oct 2023 17:59:59 +0000 (17:59 +0000)
commit4f0adeda2ce66c9b5fe2c09917a854e358fbda39
tree1cec5304b93f60103a976e5207ea9ade900f6105
parentdfe2c005af26bb9cac6d026353e2147169334220
Neither sin_len nor sin6_len can be 0 so these checks are not needed.

Also reorder the RTF_HOST vs netmask check. RTF_HOST wins if both are set.
Makes the code a bit neater.
OK tb@
usr.sbin/bgpd/kroute.c