Skip to content

Commit 75063c9

Browse files
edumazetummakynes
authored andcommitted
netfilter: xt_socket: fix a typo in socket_mt_destroy()
Calling nf_defrag_ipv4_disable() instead of nf_defrag_ipv6_disable() was probably not the intent. I found this by code inspection, while chasing a possible issue in TPROXY. Fixes: de8c121 ("netfilter: disable defrag once its no longer needed") Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 7152303 commit 75063c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/xt_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static void socket_mt_destroy(const struct xt_mtdtor_param *par)
221221
if (par->family == NFPROTO_IPV4)
222222
nf_defrag_ipv4_disable(par->net);
223223
else if (par->family == NFPROTO_IPV6)
224-
nf_defrag_ipv4_disable(par->net);
224+
nf_defrag_ipv6_disable(par->net);
225225
}
226226

227227
static struct xt_match socket_mt_reg[] __read_mostly = {

0 commit comments

Comments
 (0)