Skip to content

Commit

Permalink
Merge pull request FRRouting#13800 from idryzhov/fix-rip-ripd-crash
Browse files Browse the repository at this point in the history
fix crashes in rip and ripng
  • Loading branch information
riw777 committed Jun 20, 2023
2 parents 3917d78 + 9f6dade commit eb28d67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions ripd/ripd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3597,18 +3597,10 @@ static int rip_vrf_new(struct vrf *vrf)

static int rip_vrf_delete(struct vrf *vrf)
{
struct rip *rip;

if (IS_RIP_DEBUG_EVENT)
zlog_debug("%s: VRF deleted: %s(%u)", __func__, vrf->name,
vrf->vrf_id);

rip = rip_lookup_by_vrf_name(vrf->name);
if (!rip)
return 0;

rip_clean(rip);

return 0;
}

Expand Down
7 changes: 0 additions & 7 deletions ripngd/ripngd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2624,17 +2624,10 @@ static int ripng_vrf_new(struct vrf *vrf)

static int ripng_vrf_delete(struct vrf *vrf)
{
struct ripng *ripng;

if (IS_RIPNG_DEBUG_EVENT)
zlog_debug("%s: VRF deleted: %s(%u)", __func__, vrf->name,
vrf->vrf_id);

ripng = ripng_lookup_by_vrf_name(vrf->name);
if (!ripng)
return 0;

ripng_clean(ripng);
return 0;
}

Expand Down

0 comments on commit eb28d67

Please sign in to comment.