[quagga-dev 5545] [PATCH 01/11] Dont use vty->index in show_ip_ospf_neighbor_all_cmd().

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Wed Jul 2 14:51:29 BST 2008


It is invalid, use ospf_lookup() instead.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
---
 ospfd/ospf_vty.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 5f9fa2c..6a0d0f7 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;
 
-- 
1.5.5.4




More information about the Quagga-dev mailing list