From nobody Thu Apr 25 21:25:12 2024 Delivered-To: wpasupplicant.patchew@gmail.com Received: by 2002:a02:a689:0:0:0:0:0 with SMTP id j9csp256335jam; Thu, 30 Sep 2021 08:19:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEPUfezLNNG1DxyWP4F03ZIMFLD6sx0QZUXyED7jczDoygVHAoHtElSW7iOzx+J/7FW+W/ X-Received: by 2002:a05:6830:1e6c:: with SMTP id m12mr5644948otr.277.1633015183974; Thu, 30 Sep 2021 08:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633015183; cv=none; d=google.com; s=arc-20160816; b=aKxhjblapuHMLiN9oL3tWE7W79DyJ5GjxPPTHfVqIgniVJSJ4DKGqvUJImyOuzkYfF EyZkMpE632XnDI3ZOYjRiQwroq4JqA3wwk+8T74b0+SxeOs3LvdyivNW2UpjvrM+Z/eS +Z1mP5bvgCevS0JpuZ7mGv2+oPAJJps1ND4zLm429sosmzTuMptGUNDHprUlLwJZWTIj ss+3UG6+z/XDx37MSDTxIr1jMcU61PY3GvGryUiNmdzOd4jM+vmQxNu1UYIzDXtuFNzt QoJgcenyCZw6jYTwzJz2H6VF1yJeZBMa/TLpAe+g8eb8HBkd66iG3DiqHDOFvwcWrn0f qn+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=+5+u6ZvBHS0L9a3SN/PDZ2qEIz0CiXjQSggz4/0Z7Ic=; b=JkhbL7PjUjLtr5vgLP77FJ3FpM1UNfXCKX+h/EcTJaInBTRm2xB0azy2PjE3C7Wtvm LkLg81L82y++5RGXbd8xPBoh2GM+Spbw5yoL9YqocGbVvztpf4x1TQpBSqZJpjPxg0pB PvAwpJiwruUOsYWzj9RWSyj9x3ebxtoznIC2AwLePto+hmd+PEGj8ieSmO6n/sHR5cUh iCX2Lfug9H1Sj5oV35aiS1jgSs6FbFfISFE4mALNxjRx9FjT+ue7+Y0mvwJubl1EcHlQ 5R1UT8fgkjy847MwIrCaR+IGE6XsxX1a8BeXr+QJ7T+55adfoYE5CV1ZlpXSC6Qj1MXq 5IPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RjKZMGMP; spf=pass (google.com: domain of mptcp+bounces-2098-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1000:8100::1 as permitted sender) smtp.mailfrom="mptcp+bounces-2098-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sjc.edge.kernel.org (sjc.edge.kernel.org. [2604:1380:1000:8100::1]) by mx.google.com with ESMTPS id o8si3309916oia.92.2021.09.30.08.19.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Sep 2021 08:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of mptcp+bounces-2098-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1000:8100::1 as permitted sender) client-ip=2604:1380:1000:8100::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RjKZMGMP; spf=pass (google.com: domain of mptcp+bounces-2098-wpasupplicant.patchew=gmail.com@lists.linux.dev designates 2604:1380:1000:8100::1 as permitted sender) smtp.mailfrom="mptcp+bounces-2098-wpasupplicant.patchew=gmail.com@lists.linux.dev"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sjc.edge.kernel.org (Postfix) with ESMTPS id C08033E0F78 for ; Thu, 30 Sep 2021 15:19:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCE0D2FAF; Thu, 30 Sep 2021 15:19:41 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7088C168 for ; Thu, 30 Sep 2021 15:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633015179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+5+u6ZvBHS0L9a3SN/PDZ2qEIz0CiXjQSggz4/0Z7Ic=; b=RjKZMGMPPjR8fOepGlJpqJokFg9nWesuJRJpTb8YvcZULnswt/djX4uqzzzPuo6bMkYOoZ F+dqHtXm9ytza7ZyiHLo0hqIxAyw3UA3FvzorOB319foNGBNzAEBN3OrylGpY1CRr3DBSx OhzjcjkCXvjsjeMOrLFCXQeQX38OkBA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-451-MqcfVoCtNM-FfKSor13Pnw-1; Thu, 30 Sep 2021 11:19:38 -0400 X-MC-Unique: MqcfVoCtNM-FfKSor13Pnw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BF92B8145E7; Thu, 30 Sep 2021 15:19:36 +0000 (UTC) Received: from dcaratti.station (unknown [10.40.193.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5377B5D6D5; Thu, 30 Sep 2021 15:19:35 +0000 (UTC) From: Davide Caratti To: aclaudi@redhat.com, pabeni@redhat.com, Stephen Hemminger Cc: mptcp@lists.linux.dev, netdev@vger.kernel.org Subject: [PATCH iproute2] mptcp: unbreak JSON endpoint list Date: Thu, 30 Sep 2021 17:19:25 +0200 Message-Id: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Content-Type: text/plain; charset="utf-8" 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 bc12418bd39c..25d7d6784f89 100644 --- a/ip/ipmptcp.c +++ b/ip/ipmptcp.c @@ -262,7 +262,7 @@ static int mptcp_addr_dump(void) return -2; } =20 - close_json_object(); + delete_json_obj(); fflush(stdout); return 0; } --=20 2.31.1