summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-06-20 10:40:52 -0400
committerGitHub <noreply@github.com>2023-06-20 10:40:52 -0400
commiteb28d67ed717f13b1673e16bd273db73f9ef9eb9 (patch)
tree26340df4f721b4e51e63a3ae721212f8fb549adc
parent3917d78f4cf02bdda23280d4d865d3ac6249be82 (diff)
parent9f6dade90e5e4686f67ae17b42c2873ec7ca6532 (diff)
Merge pull request #13800 from idryzhov/fix-rip-ripd-crash
fix crashes in rip and ripng
-rw-r--r--ripd/ripd.c8
-rw-r--r--ripngd/ripngd.c7
2 files changed, 0 insertions, 15 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 04a8cad560..7bfcaadc74 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -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;
}
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 7269e76656..d5618b63f2 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -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;
}