]> git.puffer.fish Git - matthieu/frr.git/commitdiff
If the route-map used on a redistribute statement does not exists we should DENY all
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:24 +0000 (18:04 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:24 +0000 (18:04 -0700)
bgpd/bgp_route.c

index 5aa9e6da40b831b34a5cb26d984cc5b07aea9a0b..2ea52eaa2b77e1bd72910c4751abc8ba0d794b06 100644 (file)
@@ -6741,7 +6741,7 @@ bgp_redistribute_add (struct prefix *p, const struct in_addr *nexthop,
            attr_new.med = red->redist_metric;
 
          /* Apply route-map. */
-         if (red->rmap.map)
+         if (red->rmap.name)
            {
              info.peer = bgp->peer_self;
              info.attr = &attr_new;