]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Fix SEGV in ip ospf neighbor all
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Tue, 1 Jul 2008 14:54:07 +0000 (16:54 +0200)
committerJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 25 Aug 2008 07:44:18 +0000 (09:44 +0200)
Dont use vty->index in show_ip_ospf_neighbor_all_cmd(),
It is invalid, use ospf_lookup() instead.

ospfd/ospf_vty.c

index 5307b413733b9e9bda571744216116670b77fd79..11f12c5c8cbf3aeba5757b50dd017295d17d88c4 100644 (file)
@@ -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;