diff options
| author | Craig Schlenter <[email protected]> | 2007-01-09 08:11:15 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2007-01-09 08:30:08 +0000 |
| commit | cb48cfe8079ddda78425a16d6c1be57d822b365b (patch) | |
| tree | be3d3ef545fafb8b9448ae899375bc805007835a /net/ipv4/tcp_ipv4.c | |
| parent | [NETFILTER]: nf_conntrack_netbios_ns: fix uninitialized member in expectation (diff) | |
| download | kernel-cb48cfe8079ddda78425a16d6c1be57d822b365b.tar.gz kernel-cb48cfe8079ddda78425a16d6c1be57d822b365b.zip | |
[TCP]: Fix iov_len calculation in tcp_v4_send_ack().
This fixes the ftp stalls present in the current kernels.
All credit goes to Komuro <[email protected]> for tracking
this down. The patch is untested but it looks *cough* obviously
correct.
Signed-off-by: Craig Schlenter <[email protected]>
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index bf7a22412bcb..12de90a5047c 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_timewait_sock *twsk, TCPOLEN_TIMESTAMP); rep.opt[1] = htonl(tcp_time_stamp); rep.opt[2] = htonl(ts); - arg.iov[0].iov_len = TCPOLEN_TSTAMP_ALIGNED; + arg.iov[0].iov_len += TCPOLEN_TSTAMP_ALIGNED; } /* Swap the send and the receive. */ |
