From 53cc1f5882f4474fd5180c09deddb8c1079127c5 Mon Sep 17 00:00:00 2001 From: genofire Date: Sun, 21 Aug 2022 19:27:03 +0200 Subject: [PATCH] fix: parse mac as json struct - maybe --- net/respondd-module-lldp/src/respondd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/respondd-module-lldp/src/respondd.c b/net/respondd-module-lldp/src/respondd.c index 6a8ddf0..2629e6e 100644 --- a/net/respondd-module-lldp/src/respondd.c +++ b/net/respondd-module-lldp/src/respondd.c @@ -35,7 +35,7 @@ static struct json_object * respondd_provider_neighbours(void) { if (!neighmac) continue; - json_object_array_add(neighbors_array, neighmac); + json_object_array_add(neighbors_array, json_object_new_string(neighmac)); } lldpctl_atom_dec_ref(neighbors); json_object_object_add(ret_lldp, portmac, neighbors_array);