diff options
author | Yuri Gushin <yuri@ecl-labs.org> | 2006-06-27 06:01:03 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-29 19:57:44 -0400 |
commit | 9abdcf6b6cf387035d934c77bf9ebe5e747166f9 (patch) | |
tree | 2ea946e64ed3b80d872376856b3873a43ebce82f | |
parent | 40a839fdbd5d76cebb2a61980bc1fc7ecd784be2 (diff) |
[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>
-rw-r--r-- | net/netfilter/xt_tcpudp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_tcpudp.c b/net/netfilter/xt_tcpudp.c index 1b61dac9c873..a9a63aa68936 100644 --- a/net/netfilter/xt_tcpudp.c +++ b/net/netfilter/xt_tcpudp.c | |||
@@ -260,7 +260,7 @@ static int __init xt_tcpudp_init(void) | |||
260 | return ret; | 260 | return ret; |
261 | 261 | ||
262 | out_unreg_udp: | 262 | out_unreg_udp: |
263 | xt_unregister_match(&tcp_matchstruct); | 263 | xt_unregister_match(&udp_matchstruct); |
264 | out_unreg_tcp6: | 264 | out_unreg_tcp6: |
265 | xt_unregister_match(&tcp6_matchstruct); | 265 | xt_unregister_match(&tcp6_matchstruct); |
266 | out_unreg_tcp: | 266 | out_unreg_tcp: |