]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Use ng pointer in mpls_ftn_uninstall
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 24 Sep 2019 22:40:09 +0000 (18:40 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:43 +0000 (11:13 -0400)
With the new nexthop group shared memory framework, pointers
are being used in route_entry for the nexthop_group. Update
the use of this in `mpls_ftn_uninstall()` to reflect the change.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_mpls.c

index 331ca44c677e19606a4ec7559c7fa6a9a86b8796..ef1bd02608be3c13344ab4d03f164d62f5745873 100644 (file)
@@ -2698,7 +2698,7 @@ int mpls_ftn_uninstall(struct zebra_vrf *zvrf, enum lsp_types_t type,
        if (re == NULL)
                return -1;
 
        if (re == NULL)
                return -1;
 
-       for (nexthop = re->ng.nexthop; nexthop; nexthop = nexthop->next)
+       for (nexthop = re->ng->nexthop; nexthop; nexthop = nexthop->next)
                nexthop_del_labels(nexthop);
 
        SET_FLAG(re->status, ROUTE_ENTRY_CHANGED);
                nexthop_del_labels(nexthop);
 
        SET_FLAG(re->status, ROUTE_ENTRY_CHANGED);