summaryrefslogtreecommitdiff
path: root/bgpd/bgp_vpn.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-07-26 12:27:37 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-07-26 12:28:56 -0300
commit163076686edf41dfd77b889de1227334977ba070 (patch)
tree3dc0c62a8d5656867c5f7e1db9960c2af8e010ba /bgpd/bgp_vpn.c
parent66a43eb221d8aed1194269f25157741a09083e10 (diff)
bgpd/ospfd: fix json leaks and blank output
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_vpn.c')
-rw-r--r--bgpd/bgp_vpn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_vpn.c b/bgpd/bgp_vpn.c
index ca98ff0668..4661e195a2 100644
--- a/bgpd/bgp_vpn.c
+++ b/bgpd/bgp_vpn.c
@@ -51,6 +51,8 @@ int show_adj_route_vpn(struct vty *vty, struct peer *peer,
if (bgp == NULL) {
if (!use_json)
vty_out(vty, "No BGP process is configured\n");
+ else
+ vty_out(vty, "{}\n");
return CMD_WARNING;
}