diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-09-02 08:25:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-02 08:25:09 -0400 |
| commit | b0d39af982854de9fcad7960804b8ca82a664158 (patch) | |
| tree | 068802be000e463be3550cbbba73c5525400adbc /ospf6d/ospf6_main.c | |
| parent | 4223956546963c3f1a918efc6d3a5c0da875c7e7 (diff) | |
| parent | c5d28568c6b71e16fefb3a409159e8fc9742e3f0 (diff) | |
Merge pull request #7027 from Niral-Networks/niral_dev_vrf_ospf6
ospf6d : Preparing for ospf6d VRF support.
Diffstat (limited to 'ospf6d/ospf6_main.c')
| -rw-r--r-- | ospf6d/ospf6_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c index 8ae5fdcf06..182faf0038 100644 --- a/ospf6d/ospf6_main.c +++ b/ospf6d/ospf6_main.c @@ -79,15 +79,17 @@ struct thread_master *master; static void __attribute__((noreturn)) ospf6_exit(int status) { - struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT); + struct vrf *vrf; struct interface *ifp; frr_early_fini(); if (ospf6) { + vrf = vrf_lookup_by_id(ospf6->vrf_id); ospf6_delete(ospf6); ospf6 = NULL; - } + } else + vrf = vrf_lookup_by_id(VRF_DEFAULT); bfd_gbl_exit(); |
