[PATCH] Fix an endless loop in OSPF