From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken-ichirou MATSUZAWA Subject: [PATCH nf-next 3/5] netfilter: nfnetlink_queue: just returns error for unknown command Date: Tue, 5 Jan 2016 09:31:40 +0900 Message-ID: <20160105003140.GD27154@gmail.com> References: <20151006021001.GA30037@gmail.com> <20151006021246.GB30037@gmail.com> <20151006100728.GA2429@salvia> <20151007042016.GA23203@gmail.com> <20151007042550.GC23203@gmail.com> <20151016170532.GA18148@salvia> <20151106004640.GA11266@gmail.com> <20151106004947.GB11266@gmail.com> <20151108221454.GA21221@salvia> <20160105002456.GA27154@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: Pablo Neira Ayuso Return-path: Received: from mail-pf0-f173.google.com ([209.85.192.173]:33180 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665AbcAEAbp (ORCPT ); Mon, 4 Jan 2016 19:31:45 -0500 Received: by mail-pf0-f173.google.com with SMTP id q63so174196229pfb.0 for ; Mon, 04 Jan 2016 16:31:44 -0800 (PST) Content-Disposition: inline In-Reply-To: <20160105002456.GA27154@gmail.com> Sender: netfilter-devel-owner@vger.kernel.org List-ID: This patch stops processing options for unknown command. Signed-off-by: Ken-ichirou MATSUZAWA --- net/netfilter/nfnetlink_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index ca00a98..c5cd50c 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -1182,7 +1182,7 @@ static int nfqnl_recv_config(struct net *net, struct sock *ctnl, break; default: ret = -ENOTSUPP; - break; + goto err_out_unlock; } } -- 1.7.10.4