Merge pull request #2450 from ppmathis/bugfix/bgp-filtered-routes

bgpd: Fix crash when showing filtered routes
This commit is contained in:
Russ White 2018-06-19 07:37:42 -04:00 committed by GitHub
commit 4a1f626570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}