netfilter: nfnetlink_queue: don't handle options after unbind
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>
Tue, 5 Jan 2016 00:29:54 +0000 (09:29 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Jan 2016 12:25:04 +0000 (13:25 +0100)
This patch stops processing after destroying a queue instance.

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 fe360f7dd1464b0dc0963e405c37a31bfe260cc9..57951ce621b1735739613a7936f10ea149af4895 100644 (file)
@@ -1176,7 +1176,7 @@ static int nfqnl_recv_config(struct net *net, struct sock *ctnl,
                                goto err_out_unlock;
                        }
                        instance_destroy(q, queue);
-                       break;
+                       goto err_out_unlock;
                case NFQNL_CFG_CMD_PF_BIND:
                case NFQNL_CFG_CMD_PF_UNBIND:
                        break;