CVSROOT: /cvs Module name: src Changes by: clau...@cvs.openbsd.org 2022/08/03 02:16:05
Modified files: usr.sbin/bgpd : kroute.c Log message: Fix a modify after free error in kroute_remove() knexthop_validate() will modify the kroute the nexthop points to. Because of this knexthop_validate() needs to be called before the to be removed kroute is freed. Move the code into kroute_remove[46] so the order is correct. Problem found and fix tested by sthen@. OK sthen@ tb@