summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 4db2e3ea..316fa5a1 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -5460,7 +5460,7 @@ bgp_redistribute_add (struct prefix *p, const struct in_addr *nexthop,
attr_new.med = bgp->redist_metric[afi][type];
/* Apply route-map. */
- if (bgp->rmap[afi][type].map)
+ if (bgp->rmap[afi][type].name)
{
info.peer = bgp->peer_self;
info.attr = &attr_new;