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