Do not fatalx() when calculating the dmetric and the result is negative.
authorclaudio <claudio@openbsd.org>
Mon, 18 Jul 2022 09:42:46 +0000 (09:42 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 18 Jul 2022 09:42:46 +0000 (09:42 +0000)
commita485c7fb54b90b0775ca963c6cde345cd50c687f
treeca5e34a61fe7daeea3ed0c0618b97020e9ccc651
parentcad759b342a2b509cb6c3989b1d9521fca83825a
Do not fatalx() when calculating the dmetric and the result is negative.

The list of invalid prefixes is not properly sorted and when those prefixes
all become valid the list is not properly sorted until the nexthop update
pass is done. Found the hard way by myself.
OK tb@ benno@
usr.sbin/bgpd/rde_decide.c