Merge pull request #18014 from donaldsharp/nexthop_leak

Nexthop leak
This commit is contained in:
Russ White 2025-02-05 08:32:13 -05:00 committed by GitHub
commit 3fabd4f4f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1295,6 +1295,12 @@ static int netlink_route_change_read_unicast_internal(struct nlmsghdr *h,
flags, &p,
(struct prefix_ipv6 *)&src_p, &nh, 0,
table, metric, distance, true);
if (nh.nh_label)
nexthop_del_labels(&nh);
if (nh.nh_srv6)
nexthop_del_srv6_seg6(&nh);
} else {
/* XXX: need to compare the entire list of
* nexthops here for NLM_F_APPEND stupidity */