mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[NETFILTER]: xt_tcpudp: fix double unregistration in error path
"xt_unregister_match(AF_INET, &tcp_matchstruct)" is called twice, leaving "udp_matchstruct" registered, in case of a failure in the registration of the udp6 structure. Signed-off-by: Yuri Gushin <yuri@ecl-labs.org> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
40a839fdbd
commit
9abdcf6b6c
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ static int __init xt_tcpudp_init(void)
|
|||
return ret;
|
||||
|
||||
out_unreg_udp:
|
||||
xt_unregister_match(&tcp_matchstruct);
|
||||
xt_unregister_match(&udp_matchstruct);
|
||||
out_unreg_tcp6:
|
||||
xt_unregister_match(&tcp6_matchstruct);
|
||||
out_unreg_tcp:
|
||||
|
|
Loading…
Reference in a new issue