OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04166f4
)
netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid
author
Liping Zhang
<zlpnobody@gmail.com>
Wed, 15 Mar 2017 14:22:08 +0000
(22:22 +0800)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 15 Mar 2017 16:15:54 +0000
(17:15 +0100)
We should jump to invoke __nft_ct_set_destroy() instead of just
return error.
Fixes:
edee4f1e9245
("netfilter: nft_ct: add zone id set support")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_ct.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nft_ct.c
b/net/netfilter/nft_ct.c
index
91585b5
..
0264258
100644
(file)
--- a/
net/netfilter/nft_ct.c
+++ b/
net/netfilter/nft_ct.c
@@
-544,7
+544,8
@@
static int nft_ct_set_init(const struct nft_ctx *ctx,
case IP_CT_DIR_REPLY:
break;
default:
- return -EINVAL;
+ err = -EINVAL;
+ goto err1;
}
}