26 lines
888 B
Diff
26 lines
888 B
Diff
From 1d923374f64e099d734899aff219d90cb0213fa6 Mon Sep 17 00:00:00 2001
|
|
From: Emanuele Bovisio <emanuele.bovisio@eolo.it>
|
|
Date: Thu, 5 Nov 2020 14:27:51 +0100
|
|
Subject: [PATCH] bfdd: fix crash on show bfd peers counters json
|
|
|
|
wrong pointer passed to bfd_id_iterate function
|
|
|
|
Signed-off-by: Emanuele Bovisio <emanuele.bovisio@eolo.it>
|
|
---
|
|
bfdd/bfdd_vty.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c
|
|
index a3f1638e5f6..837a7b7d7d6 100644
|
|
--- a/bfdd/bfdd_vty.c
|
|
+++ b/bfdd/bfdd_vty.c
|
|
@@ -447,7 +447,7 @@ static void _display_peers_counter(struct vty *vty, char *vrfname, bool use_json
|
|
|
|
jo = json_object_new_array();
|
|
bvt.jo = jo;
|
|
- bfd_id_iterate(_display_peer_counter_json_iter, jo);
|
|
+ bfd_id_iterate(_display_peer_counter_json_iter, &bvt);
|
|
|
|
vty_out(vty, "%s\n", json_object_to_json_string_ext(jo, 0));
|
|
json_object_free(jo);
|