netfilter: nfnetlink_queue: just returns error for unknown command
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>
Tue, 5 Jan 2016 00:31:40 +0000 (09:31 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Jan 2016 12:25:05 +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_queue.c

index 57951ce621b1735739613a7936f10ea149af4895..c1f6df4cfe88769ad4b4b47b4f631b95f8c85f3f 100644 (file)
@@ -1182,7 +1182,7 @@ static int nfqnl_recv_config(struct net *net, struct sock *ctnl,
                        break;
                default:
                        ret = -ENOTSUPP;
-                       break;
+                       goto err_out_unlock;
                }
        }