[zebra] rib loop check for RIB_ENTRY_REMOVED checks wrong var

2007-06-25 Denis Ovsienko

	* zebra_rib.c: (rib_add_ipv4_multipath) Loop through RIB
	  is using 'same' variable, but RIB_ENTRY_REMOVED check
	  is testing the constant 'rib' variable, fix. Impact
	  unknown at this point.
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 693b333..a85c49f 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1393,7 +1393,7 @@
      withdraw. */
   for (same = rn->info; same; same = same->next)
     {
-      if (CHECK_FLAG (rib->status, RIB_ENTRY_REMOVED))
+      if (CHECK_FLAG (same->status, RIB_ENTRY_REMOVED))
         continue;
       
       if (same->type == rib->type && same->table == rib->table