diff options
author | dg <dg@FreeBSD.org> | 1998-11-15 16:55:09 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1998-11-15 16:55:09 +0000 |
commit | 386e180e558521c15d0be7481df01aff477e85e8 (patch) | |
tree | e4f9ad724e617f6f7aa1ab178aa4a34a25870158 /sys | |
parent | d3f53ca3db1fae558735f4317730c5d1a989131d (diff) | |
download | FreeBSD-src-386e180e558521c15d0be7481df01aff477e85e8.zip FreeBSD-src-386e180e558521c15d0be7481df01aff477e85e8.tar.gz |
In sendfile(2), check against sb_lowat when filling the socket buffer,
rather than 0.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index d29acd6..a35931e 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 - * $Id: uipc_syscalls.c,v 1.43 1998/11/06 19:16:30 dg Exp $ + * $Id: uipc_syscalls.c,v 1.44 1998/11/14 23:36:17 dg Exp $ */ #include "opt_compat.h" @@ -1645,7 +1645,7 @@ retry_space: * after checking the connection state above in order to avoid * a race condition with sbwait(). */ - if (sbspace(&so->so_snd) <= 0) { + if (sbspace(&so->so_snd) < so->so_snd.sb_lowat) { if (so->so_state & SS_NBIO) { m_freem(m); sbunlock(&so->so_snd); |