Skip to content

Commit eb07595

Browse files
chamakenummakynes
authored andcommitted
netfilter: nfnetlink_log: just returns error for unknown command
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>
1 parent 71b2e5f commit eb07595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nfnetlink_log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ static int nfulnl_recv_config(struct net *net, struct sock *ctnl,
888888
goto out_put;
889889
default:
890890
ret = -ENOTSUPP;
891-
break;
891+
goto out_put;
892892
}
893893
} else if (!inst) {
894894
ret = -ENODEV;

0 commit comments

Comments
 (0)