summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
authorEmanuele Bovisio <emanuele.bovisio@eolo.it>2020-11-05 14:27:51 +0100
committerEmanuele Bovisio <emanuele.bovisio@eolo.it>2020-11-06 17:34:56 +0100
commit1d923374f64e099d734899aff219d90cb0213fa6 (patch)
treeb8c1322d7803f28f308135b10b663046621ba596 /bfdd
parentMerge pull request #7459 from donaldsharp/clang_more_stuff_to_cleanup (diff)
downloadfrr-1d923374f64e099d734899aff219d90cb0213fa6.tar.xz
frr-1d923374f64e099d734899aff219d90cb0213fa6.zip
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>
Diffstat (limited to 'bfdd')
-rw-r--r--bfdd/bfdd_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c
index a3f1638e5..837a7b7d7 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);