Fix incorrect logic wouldn't disconnect incomming connections that had been

disconnected because they were not full.

Submitted by: David Filo
This commit is contained in:
Alfred Perlstein 2001-01-03 19:50:23 +00:00
parent f0ff2d5f66
commit da289f07ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70643

View File

@ -156,7 +156,7 @@ static void
sohashttpget(struct socket *so, void *arg, int waitflag)
{
if ((so->so_state & SS_CANTRCVMORE) == 0 || !sbfull(&so->so_rcv)) {
if ((so->so_state & SS_CANTRCVMORE) == 0 && !sbfull(&so->so_rcv)) {
struct mbuf *m;
char *cmp;
int cmplen, cc;