]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: xt_tcpudp: fix double unregistration in error path
authorYuri Gushin <yuri@ecl-labs.org>
Tue, 27 Jun 2006 10:01:03 +0000 (03:01 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 29 Jun 2006 23:57:44 +0000 (16:57 -0700)
commit9abdcf6b6cf387035d934c77bf9ebe5e747166f9
tree2ea946e64ed3b80d872376856b3873a43ebce82f
parent40a839fdbd5d76cebb2a61980bc1fc7ecd784be2
[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>
net/netfilter/xt_tcpudp.c