From e7a98a96f08a6efc5d474c795cef371f00db4bbf Mon Sep 17 00:00:00 2001 From: Davide Caratti Date: Thu, 30 Sep 2021 17:19:25 +0200 Subject: [PATCH] mptcp: unbreak JSON endpoint list the following command: # ip -j mptcp endpoint show prints a JSON array that misses the terminating bracket. Fix this calling delete_json_obj() to balance the call to new_json_obj(). Fixes: 7e0767cd862b ("add support for mptcp netlink interface") Signed-off-by: Davide Caratti Acked-by: Andrea Claudi --- ip/ipmptcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c index 44af7234..fd042da8 100644 --- a/ip/ipmptcp.c +++ b/ip/ipmptcp.c @@ -278,7 +278,7 @@ static int mptcp_addr_dump(void) return -2; } - close_json_object(); + delete_json_obj(); fflush(stdout); return 0; }