From patchwork Tue Mar 20 01:19:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Linus_L=C3=BCssing?= X-Patchwork-Id: 17320 X-Patchwork-Delegate: sw@simonwunderlich.de Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id E57CC81052; Tue, 20 Mar 2018 02:19:34 +0100 (CET) Received: from mail.aperture-lab.de (mail.aperture-lab.de [IPv6:2a01:4f8:171:314c::100:a1]) by open-mesh.org (Postfix) with ESMTPS id 4B26F80B7E for ; Tue, 20 Mar 2018 02:19:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.aperture-lab.de (Postfix) with ESMTP id 309F5E8C3E for ; Tue, 20 Mar 2018 02:19:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aperture-lab.de Received: from mail.aperture-lab.de ([127.0.0.1]) by localhost (mail.aperture-lab.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 4NPIt6JkJU-R; Tue, 20 Mar 2018 02:19:27 +0100 (CET) Received: from localhost (unknown [IPv6:2a01:170:1112:0:bcd7:94ff:fefd:2ddd]) (Authenticated sender: linus.luessing@c0d3.blue) by mail.aperture-lab.de (Postfix) with ESMTPSA; Tue, 20 Mar 2018 02:19:27 +0100 (CET) From: =?utf-8?q?Linus_L=C3=BCssing?= To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 20 Mar 2018 02:19:24 +0100 Message-Id: <20180320011924.28287-1-linus.luessing@c0d3.blue> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 Subject: [B.A.T.M.A.N.] [PATCH] batctl: netlink: fix resetting mcast_flags_priv to unsupported state X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" This fixes a copy & paste error detected by Coverity. Fixes: b56061058113 ("batctl: add netlink dump function for multicast flags table") Reported-by: scan-admin@coverity.com Signed-off-by: Linus Lüssing --- netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlink.c b/netlink.c index ab7be1e..f0fd1d9 100644 --- a/netlink.c +++ b/netlink.c @@ -252,7 +252,7 @@ static int info_callback(struct nl_msg *msg, void *arg) if (attrs[BATADV_ATTR_MCAST_FLAGS_PRIV]) mcast_flags_priv = nla_get_u32(attrs[BATADV_ATTR_MCAST_FLAGS_PRIV]); else - mcast_flags = -EOPNOTSUPP; + mcast_flags_priv = -EOPNOTSUPP; switch (opts->nl_cmd) { case BATADV_CMD_GET_TRANSTABLE_LOCAL: