diff options
author | Neal Cardwell <ncardwell@google.com> | 2012-06-28 16:34:21 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-29 04:54:03 +0400 |
commit | 9f10d3f6f966ef6f6a8d025a4b1d341923d04607 (patch) | |
tree | 1f47abac17996fdbe45114dd6bbf65f451f1075d /net/ieee802154/nl-mac.c | |
parent | 9494218fbae2f88bd3f9b887714734abfdf38bab (diff) | |
download | linux-9f10d3f6f966ef6f6a8d025a4b1d341923d04607.tar.xz |
tcp: plug dst leak in tcp_v6_conn_request()
The code in tcp_v6_conn_request() was implicitly assuming that
tcp_v6_send_synack() would take care of dst_release(), much as
tcp_v4_send_synack() already does. This resulted in
tcp_v6_conn_request() leaking a dst if sysctl_tw_recycle is enabled.
This commit restructures tcp_v6_send_synack() so that it accepts a dst
pointer and takes care of releasing the dst that is passed in, to plug
the leak and avoid future surprises by bringing the IPv6 behavior in
line with the IPv4 side.
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154/nl-mac.c')
0 files changed, 0 insertions, 0 deletions