summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2008-07-01 16:54:07 +0200
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-21 17:04:45 -0700
commit0eb78a78cffc4a5c13e2b5daff5fa257b3f1d8d6 (patch)
tree112ba64d28b46c08152d456bf307219a471af889
parentfa3e86a1a7559808ba5e32374e35d387472567c8 (diff)
downloadquagga-0eb78a78cffc4a5c13e2b5daff5fa257b3f1d8d6.tar.bz2
quagga-0eb78a78cffc4a5c13e2b5daff5fa257b3f1d8d6.tar.xz
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 bfd90466..1f4a2f6b 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;