svn commit: r275320 - head/sys/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Sun Nov 30 12:11:02 UTC 2014
Author: glebius
Date: Sun Nov 30 12:11:01 2014
New Revision: 275320
URL: https://svnweb.freebsd.org/changeset/base/275320
Log:
Missed in r274421: use sbavail() instead of bare access to sb_cc.
Modified:
head/sys/netinet/tcp_usrreq.c
Modified: head/sys/netinet/tcp_usrreq.c
==============================================================================
--- head/sys/netinet/tcp_usrreq.c Sun Nov 30 11:59:20 2014 (r275319)
+++ head/sys/netinet/tcp_usrreq.c Sun Nov 30 12:11:01 2014 (r275320)
@@ -925,7 +925,7 @@ tcp_usr_send(struct socket *so, int flag
tp->snd_wnd = TTCP_CLIENT_SND_WND;
tcp_mss(tp, -1);
}
- tp->snd_up = tp->snd_una + so->so_snd.sb_cc;
+ tp->snd_up = tp->snd_una + sbavail(&so->so_snd);
tp->t_flags |= TF_FORCEDATA;
error = tcp_output(tp);
tp->t_flags &= ~TF_FORCEDATA;
More information about the svn-src-head
mailing list