summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2008-07-01 16:54:07 +0200
committerJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2008-08-25 09:44:18 +0200
commit35f891404a6d2f0d034ca0fb724904db72baf552 (patch)
treec88b3a0ed05fa5664e0a731792619b6134230231
parentb38309a4ee831a440ef78f8a27db584f2f8e8276 (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.
-rw-r--r--ospfd/ospf_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 5307b413..11f12c5c 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -3093,7 +3093,7 @@ DEFUN (show_ip_ospf_neighbor_all,
"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;