diff options
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 0a15eb504..95e7def8f 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1185,12 +1185,8 @@ static int bgp_input_modifier(struct peer *peer, struct prefix *p, peer->rmap_type = 0; - if (ret == RMAP_DENYMATCH) { - /* Free newly generated AS path and community by - * route-map. */ - bgp_attr_flush(attr); + if (ret == RMAP_DENYMATCH) return RMAP_DENY; - } } return RMAP_PERMIT; } |