summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index 2519ec9c..2afe19ec 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -131,13 +131,15 @@ ospf_if_table_lookup (struct interface *ifp, struct prefix *prefix)
{
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