mirror of
https://github.com/FRRouting/frr.git
synced 2026-01-16 23:14:01 +00:00
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:
parent
b65d7f7af7
commit
80bd0d26c6
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue