mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
* bgp_routemap.c: Stop leaking communities.
Fixes bugzilla #89. [backport candidate]
This commit is contained in:
parent
54a6ed38ac
commit
70601e0691
@ -1,3 +1,7 @@
|
|||||||
|
2005-05-27 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
|
* bgp_routemap.c: Stop leaking communities.
|
||||||
|
|
||||||
2005-05-27 Hasso Tepper <hasso at quagga.net>
|
2005-05-27 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
* bgpd.c: Deleting bgp->rsclient list needs fix similar to pree-groups
|
* bgpd.c: Deleting bgp->rsclient list needs fix similar to pree-groups
|
||||||
|
@ -1268,6 +1268,10 @@ route_set_community (void *rule, struct prefix *prefix,
|
|||||||
new = community_dup (rcs->com);
|
new = community_dup (rcs->com);
|
||||||
|
|
||||||
attr->community = new;
|
attr->community = new;
|
||||||
|
|
||||||
|
if (old)
|
||||||
|
community_free (old);
|
||||||
|
|
||||||
attr->flag |= ATTR_FLAG_BIT (BGP_ATTR_COMMUNITIES);
|
attr->flag |= ATTR_FLAG_BIT (BGP_ATTR_COMMUNITIES);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1448,6 +1452,9 @@ route_set_ecommunity_rt (void *rule, struct prefix *prefix,
|
|||||||
|
|
||||||
bgp_info->attr->ecommunity = new_ecom;
|
bgp_info->attr->ecommunity = new_ecom;
|
||||||
|
|
||||||
|
if (old_ecom)
|
||||||
|
ecommunity_free (old_ecom);
|
||||||
|
|
||||||
bgp_info->attr->flag |= ATTR_FLAG_BIT (BGP_ATTR_EXT_COMMUNITIES);
|
bgp_info->attr->flag |= ATTR_FLAG_BIT (BGP_ATTR_EXT_COMMUNITIES);
|
||||||
}
|
}
|
||||||
return RMAP_OKAY;
|
return RMAP_OKAY;
|
||||||
|
Loading…
Reference in New Issue
Block a user