diff options
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 58a3e69aef64..97b684159861 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -293,12 +293,9 @@ void tcp_time_wait(struct sock *sk, int state, int timeo) | |||
293 | #if IS_ENABLED(CONFIG_IPV6) | 293 | #if IS_ENABLED(CONFIG_IPV6) |
294 | if (tw->tw_family == PF_INET6) { | 294 | if (tw->tw_family == PF_INET6) { |
295 | struct ipv6_pinfo *np = inet6_sk(sk); | 295 | struct ipv6_pinfo *np = inet6_sk(sk); |
296 | struct inet6_timewait_sock *tw6; | ||
297 | 296 | ||
298 | tw->tw_ipv6_offset = inet6_tw_offset(sk->sk_prot); | 297 | tw->tw_v6_daddr = sk->sk_v6_daddr; |
299 | tw6 = inet6_twsk((struct sock *)tw); | 298 | tw->tw_v6_rcv_saddr = sk->sk_v6_rcv_saddr; |
300 | tw6->tw_v6_daddr = np->daddr; | ||
301 | tw6->tw_v6_rcv_saddr = np->rcv_saddr; | ||
302 | tw->tw_tclass = np->tclass; | 299 | tw->tw_tclass = np->tclass; |
303 | tw->tw_ipv6only = np->ipv6only; | 300 | tw->tw_ipv6only = np->ipv6only; |
304 | } | 301 | } |