zebra: fix infinite loop when deleting an interface
commite26873fd8f0c4306eff65de94a45b4114fc81b98
authorRoman Hoog Antink <rha@open.ch>
Wed, 5 May 2010 14:00:50 +0000 (5 16:00 +0200)
committerGreg Troxel <gdt@ir.bbn.com>
Wed, 5 May 2010 16:03:33 +0000 (5 12:03 -0400)
tree9775a683303e801df8555d5a74dbd714182857f6
parentcfe117498c8348bfcd8f5f95169a6621e437458a
zebra: fix infinite loop when deleting an interface

When deleting a VLAN interface after flushing its
addresses, zebra uses 100% CPU time and freezes.

 * interface.c: The while loop in line 407 that
   should clean up connected routes never hits one
   of the 2 lines "last = node;" and thus loops
   forever.

Signed-off-by: Roman Hoog Antink <rha@open.ch>
zebra/interface.c