Module Name:    src
Committed By:   ryo
Date:           Fri Jul 25 17:53:59 UTC 2014

Modified Files:
        src/sys/netinet: tcp_seq.h

Log Message:
fix some case of reference to uninitialized tp->snd_fack.
This bug causes dropping FIN mistekenly.
pointed out in PR/48283 by YASUOKA Masahiko, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/netinet/tcp_seq.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/tcp_seq.h
diff -u src/sys/netinet/tcp_seq.h:1.16 src/sys/netinet/tcp_seq.h:1.17
--- src/sys/netinet/tcp_seq.h:1.16	Sat Dec 10 23:36:23 2005
+++ src/sys/netinet/tcp_seq.h	Fri Jul 25 17:53:59 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcp_seq.h,v 1.16 2005/12/10 23:36:23 elad Exp $	*/
+/*	$NetBSD: tcp_seq.h,v 1.17 2014/07/25 17:53:59 ryo Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1993, 1995
@@ -58,7 +58,7 @@
 
 #define	tcp_sendseqinit(tp) \
 	(tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \
-	    (tp)->snd_recover = (tp)->snd_high = (tp)->iss
+	    (tp)->snd_recover = (tp)->snd_high = (tp)->snd_fack = (tp)->iss
 
 #define TCP_ISS_RANDOM_MASK 0x00ffffff /* bits of randomness in a TCP ISS */
 #define TCP_ISSINCR         0x01000000 /* increment per time and per conn */

Reply via email to