From: Joakim Tjernlund Date: Tue, 1 Jul 2008 14:54:07 +0000 (+0200) Subject: Fix SEGV in ip ospf neighbor all X-Git-Tag: frr-2.0-rc1~2366^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=35f891404a6d2f0d034ca0fb724904db72baf552;p=mirror%2Ffrr.git 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 5307b41373..11f12c5c8c 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;