diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2011-09-24 22:21:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-29 00:32:10 -0400 |
commit | 676a1184e8afd4fed7948232df1ff91517400859 (patch) | |
tree | 9079566b1a2bc80102db685ea98bf1a2a12ab835 | |
parent | 6482aa7c120447858da1869197b48eff66435a31 (diff) |
ipv6: nullify ipv6_ac_list and ipv6_fl_list when creating new socket
ipv6_ac_list and ipv6_fl_list from listening socket are inadvertently
shared with new socket created for connection.
Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 3c9fa618b69d..79cc6469508d 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1383,6 +1383,8 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1383 | newtp->af_specific = &tcp_sock_ipv6_mapped_specific; | 1383 | newtp->af_specific = &tcp_sock_ipv6_mapped_specific; |
1384 | #endif | 1384 | #endif |
1385 | 1385 | ||
1386 | newnp->ipv6_ac_list = NULL; | ||
1387 | newnp->ipv6_fl_list = NULL; | ||
1386 | newnp->pktoptions = NULL; | 1388 | newnp->pktoptions = NULL; |
1387 | newnp->opt = NULL; | 1389 | newnp->opt = NULL; |
1388 | newnp->mcast_oif = inet6_iif(skb); | 1390 | newnp->mcast_oif = inet6_iif(skb); |
@@ -1447,6 +1449,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1447 | First: no IPv4 options. | 1449 | First: no IPv4 options. |
1448 | */ | 1450 | */ |
1449 | newinet->inet_opt = NULL; | 1451 | newinet->inet_opt = NULL; |
1452 | newnp->ipv6_ac_list = NULL; | ||
1450 | newnp->ipv6_fl_list = NULL; | 1453 | newnp->ipv6_fl_list = NULL; |
1451 | 1454 | ||
1452 | /* Clone RX bits */ | 1455 | /* Clone RX bits */ |