Message ID | b526544bc745535f72c76752bbd850df5a0ac2e4.1633004460.git.dcaratti@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Stephen Hemminger |
Headers | show |
Series | [iproute2] mptcp: unbreak JSON endpoint list | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
On Thu, Sep 30, 2021 at 05:19:25PM +0200, Davide Caratti wrote: > 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 <dcaratti@redhat.com> > --- LGTM. Acked-by: Andrea Claudi <aclaudi@redhat.com>
diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c index bc12418bd39c..25d7d6784f89 100644 --- a/ip/ipmptcp.c +++ b/ip/ipmptcp.c @@ -262,7 +262,7 @@ static int mptcp_addr_dump(void) return -2; } - close_json_object(); + delete_json_obj(); fflush(stdout); return 0; }
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 <dcaratti@redhat.com> --- ip/ipmptcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)