CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2020/01/25 16:54:21

Modified files:
        usr.sbin/bgpd  : rde_rib.c 

Log message:
In nexthop_update() only add a nexthop to the nexthop_runners queue if
there is actual work to do (nh->next_prefix != NULL). If next_prefix
is NULL there is a possibility that nexthop_unref() is called before
the nexthop is removed from the nexthop_runners queue resulting in a
use-after-free access in nexthop_runner().
For consistency add a debug message in nexthop_unlink() if the nexthop
is removed from the nexthop_runners queue because the last prefix is gone.
OK procter@

Reply via email to