From: Ken-ichirou MATSUZAWA Date: Tue, 5 Jan 2016 00:34:34 +0000 (+0900) Subject: netfilter: nfnetlink_log: just returns error for unknown command X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb075954e9fde114f57adc39a9ea6d379c13f81e;p=linux-beck.git netfilter: nfnetlink_log: just returns error for unknown command This patch stops processing options for unknown command. Signed-off-by: Ken-ichirou MATSUZAWA Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 6a57f10a4e0b..8ca932057c13 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -888,7 +888,7 @@ static int nfulnl_recv_config(struct net *net, struct sock *ctnl, goto out_put; default: ret = -ENOTSUPP; - break; + goto out_put; } } else if (!inst) { ret = -ENODEV;