]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Fix missing else in static_add_ipv4() which was causing case of (!ifname)
authorpaul <paul>
Sun, 25 May 2003 23:24:50 +0000 (23:24 +0000)
committerpaul <paul>
Sun, 25 May 2003 23:24:50 +0000 (23:24 +0000)
to always be considered to be a blackhole route. (if gate is passed in, it
cant be).

zebra/zebra_rib.c

index fe29e81660e99b26808b1b48244a5fbc39c08ab9..4098db264a333d19f2eae00ae9b6e60acff41362 100644 (file)
@@ -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;