netfilter: nfnetlink_log: just returns error for unknown command
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>
Tue, 5 Jan 2016 00:34:34 +0000 (09:34 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Jan 2016 12:25:07 +0000 (13:25 +0100)
This patch stops processing options for unknown command.

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_log.c

index 6a57f10a4e0b9ffdcec99e1e9c28bf7f59d6906c..8ca932057c13b32e39161de128edc81d21219ff6 100644 (file)
@@ -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;
This page took 0.04316 seconds and 5 git commands to generate.