]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/tcp_ipv4.c
[TCP]: Fix iov_len calculation in tcp_v4_send_ack().
[karo-tx-linux.git] / net / ipv4 / tcp_ipv4.c
index bf7a22412bcb9b25c928773322aa96b2754137c3..12de90a5047cf214cd4bd1851331ac14851c0783 100644 (file)
@@ -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. */