In pt_fill set the refcnt to its maximum value to trigger an error
authorclaudio <claudio@openbsd.org>
Tue, 28 Mar 2023 17:47:29 +0000 (17:47 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 28 Mar 2023 17:47:29 +0000 (17:47 +0000)
commit1f391030ed3730708ac9c23a4891b76540f21b7a
treefc73ce175ea4545feec63a60bd441a3626e744ad
parent822916020a4c2b9a03d609cd1679d54dfd0e46ab
In pt_fill set the refcnt to its maximum value to trigger an error
if pt_ref is called on such a pt_entry. Set refcnt to 0 in pt_alloc
since the value from pt_fill is copied over.
OK tb@
usr.sbin/bgpd/rde_prefix.c