Re: [PATCH] [v2] netfilter: ipset: fix a missing check of nla_parse

2019-01-08 Thread Kadlecsik József
Hi, On Sat, 5 Jan 2019, Aditya Pakki wrote: > When nla_parse fails, we should not use the results (the first > argument). The fix checks if it fails, and if so, returns its error code > upstream. Patch is applied in the ipset git tree, thanks! Best regards, Jozsef > Signed-off-by: Aditya Pakki

[PATCH] [v2] netfilter: ipset: fix a missing check of nla_parse

2019-01-05 Thread Aditya Pakki
When nla_parse fails, we should not use the results (the first argument). The fix checks if it fails, and if so, returns its error code upstream. Signed-off-by: Aditya Pakki --- net/netfilter/ipset/ip_set_core.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/net