[quagga-dev 11595] [PATCH] zebra: route_unlock_node is missing in "show ip[v6] route <prefix>" commands

Feng Lu lu.feng at 6wind.com
Tue Oct 21 08:24:07 BST 2014


Signed-off-by: Feng Lu <lu.feng at 6wind.com>
---
 zebra/zebra_vty.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index baa60db..1d12ac5 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -998,6 +998,8 @@ DEFUN (show_ip_route_prefix,
   if (! rn || rn->p.prefixlen != p.prefixlen)
     {
       vty_out (vty, "%% Network not in table%s", VTY_NEWLINE);
+      if (rn)
+        route_unlock_node (rn);
       return CMD_WARNING;
     }
 
@@ -1897,6 +1899,8 @@ DEFUN (show_ipv6_route_prefix,
   if (! rn || rn->p.prefixlen != p.prefixlen)
     {
       vty_out (vty, "%% Network not in table%s", VTY_NEWLINE);
+      if (rn)
+        route_unlock_node (rn);
       return CMD_WARNING;
     }
 
-- 
1.7.4.4





More information about the Quagga-dev mailing list