[PATCH 4.4 121/230] netfilter: nfnetlink_log: just returns error for unknown command
From: Greg Kroah-Hartman
Date: Fri Mar 22 2019 - 07:34:08 EST
4.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ken-ichirou MATSUZAWA <chamaken@xxxxxxxxx>
commit eb075954e9fde114f57adc39a9ea6d379c13f81e upstream.
This patch stops processing options for unknown command.
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@xxxxxxxxxxxxx>
Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
Cc: Zubin Mithra <zsm@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
net/netfilter/nfnetlink_log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -895,7 +895,7 @@ nfulnl_recv_config(struct sock *ctnl, st
goto out_put;
default:
ret = -ENOTSUPP;
- break;
+ goto out_put;
}
} else if (!inst) {
ret = -ENODEV;