From: paul Date: Sun, 25 May 2003 23:24:50 +0000 (+0000) Subject: Fix missing else in static_add_ipv4() which was causing case of (!ifname) X-Git-Tag: frr-2.0-rc1~4024 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=368aa3f0f5edc4daed09055b641c47a9e9dc48c9;p=matthieu%2Ffrr.git Fix missing else in static_add_ipv4() which was causing case of (!ifname) to always be considered to be a blackhole route. (if gate is passed in, it cant be). --- diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index fe29e81660..4098db264a 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1431,7 +1431,7 @@ static_add_ipv4 (struct prefix *p, struct in_addr *gate, char *ifname, /* Make flags. */ if (gate) type = STATIC_IPV4_GATEWAY; - if (ifname) + else if (ifname) type = STATIC_IPV4_IFNAME; else type = STATIC_IPV4_BLACKHOLE;