ripngd: Fix up possible NULL pointer usage

The rinfo pointer in some calling functions is
tested for being NULL before it is used in
this function.  Therefore let's make sure
things are what we want them to be.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2025-10-03 11:35:32 -04:00
parent b65d7f7af7
commit 80bd0d26c6

View file

@ -599,8 +599,12 @@ struct ripng_info *ripng_ecmp_replace(struct ripng *ripng,
struct ripng_info *ripng_ecmp_delete(struct ripng *ripng,
struct ripng_info *rinfo)
{
struct agg_node *rp = rinfo->rp;
struct list *list = (struct list *)rp->info;
struct agg_node *rp;
struct list *list;
assert(rinfo);
rp = rinfo->rp;
list = rp->info;
event_cancel(&rinfo->t_timeout);