commit | 35f891404a6d2f0d034ca0fb724904db72baf552 | [log] [tgz] |
---|---|---|
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | Tue Jul 01 16:54:07 2008 +0200 |
committer | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | Mon Aug 25 09:44:18 2008 +0200 |
tree | c88b3a0ed05fa5664e0a731792619b6134230231 | |
parent | b38309a4ee831a440ef78f8a27db584f2f8e8276 [diff] |
Fix SEGV in ip ospf neighbor all Dont use vty->index in show_ip_ospf_neighbor_all_cmd(), It is invalid, use ospf_lookup() instead.
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 5307b41..11f12c5 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c
@@ -3093,7 +3093,7 @@ "Neighbor list\n" "include down status neighbor\n") { - struct ospf *ospf = vty->index; + struct ospf *ospf = ospf_lookup (); struct listnode *node; struct ospf_interface *oi;