Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet fix some case of reference to uninitialized tp->...



details:   https://anonhg.NetBSD.org/src/rev/565ebd98f8eb
branches:  trunk
changeset: 797717:565ebd98f8eb
user:      ryo <ryo%NetBSD.org@localhost>
date:      Fri Jul 25 17:53:59 2014 +0000

description:
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!

diffstat:

 sys/netinet/tcp_seq.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ebd3051b7cc0 -r 565ebd98f8eb sys/netinet/tcp_seq.h
--- a/sys/netinet/tcp_seq.h     Fri Jul 25 17:21:32 2014 +0000
+++ b/sys/netinet/tcp_seq.h     Fri Jul 25 17:53:59 2014 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index