Skip to content

Commit

Permalink
netfilter: nfnetlink_log: just returns error for unknown command
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ken-ichirou MATSUZAWA authored and Pablo Neira Ayuso committed Jan 8, 2016
1 parent 71b2e5f commit eb07595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nfnetlink_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb07595

Please sign in to comment.