* ospfd/ospf_interface.c: (ospf_if_table_lookup) grab reference to
rn->info /before/ calling route_unlock_node() as some systems
may deliberately poison freed memory, eg FreeBSD 5.1.
see [quagga-dev 417].
{
struct prefix p;
struct route_node *rn;
+ struct ospf_interface *rninfo;
p = *prefix;
rn = route_node_get (IF_OIFS (ifp), &p);
/* route_node_get implicitely locks */
+ rninfo = (struct ospf_interface *) rn->info;
route_unlock_node (rn);
- return (struct ospf_interface *) rn->info;
+ return rninfo;
}
void