aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r--net/ipv6/tcp_ipv6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 24dac6b83fb9..8044f6ac1301 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1829,14 +1829,13 @@ static const struct tcp_sock_af_ops tcp_sock_ipv6_mapped_specific = {
1829static int tcp_v6_init_sock(struct sock *sk) 1829static int tcp_v6_init_sock(struct sock *sk)
1830{ 1830{
1831 struct inet_connection_sock *icsk = inet_csk(sk); 1831 struct inet_connection_sock *icsk = inet_csk(sk);
1832 struct tcp_sock *tp = tcp_sk(sk);
1833 1832
1834 tcp_init_sock(sk); 1833 tcp_init_sock(sk);
1835 1834
1836 icsk->icsk_af_ops = &ipv6_specific; 1835 icsk->icsk_af_ops = &ipv6_specific;
1837 1836
1838#ifdef CONFIG_TCP_MD5SIG 1837#ifdef CONFIG_TCP_MD5SIG
1839 tp->af_specific = &tcp_sock_ipv6_specific; 1838 tcp_sk(sk)->af_specific = &tcp_sock_ipv6_specific;
1840#endif 1839#endif
1841 1840
1842 return 0; 1841 return 0;