Patchwork tcpv6: fix option space offsets with md5

login
register
mail settings
Submitter Ilpo Järvinen
Date Oct. 8, 2008, 9:31 p.m.
Message ID <Pine.LNX.4.64.0810090028040.8595@wrl-59.cs.helsinki.fi>
Download mbox | patch
Permalink /patch/3387/
State Accepted
Delegated to: David Miller
Headers show

Comments

Patch

diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 26ac4fe..9c9ecf4 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1087,7 +1087,7 @@  static void tcp_v6_send_ack(struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32
 		*topt++ = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |
 				(TCPOPT_TIMESTAMP << 8) | TCPOLEN_TIMESTAMP);
 		*topt++ = htonl(tcp_time_stamp);
-		*topt = htonl(ts);
+		*topt++ = htonl(ts);
 	}
 
 #ifdef CONFIG_TCP_MD5SIG