Skip to content

Commit 22cbdbc

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: conntrack: unregister ipv4 sockopts on error unwind
When ipv6 sockopt register fails, the ipv4 one needs to be removed. Fixes: a0ae256 ("netfilter: conntrack: remove l3proto abstraction") Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 04c26fa commit 22cbdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_conntrack_proto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ int nf_conntrack_proto_init(void)
664664

665665
#if IS_ENABLED(CONFIG_IPV6)
666666
cleanup_sockopt:
667-
nf_unregister_sockopt(&so_getorigdst6);
667+
nf_unregister_sockopt(&so_getorigdst);
668668
#endif
669669
return ret;
670670
}

0 commit comments

Comments
 (0)