projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
just wrong
[unix-history]
/
usr
/
src
/
sys
/
netinet
/
tcp_input.c
diff --git
a/usr/src/sys/netinet/tcp_input.c
b/usr/src/sys/netinet/tcp_input.c
index
c85c244
..
8c0455d
100644
(file)
--- a/
usr/src/sys/netinet/tcp_input.c
+++ b/
usr/src/sys/netinet/tcp_input.c
@@
-1,4
+1,4
@@
-/* tcp_input.c 1.8
5 83/01/04
*/
+/* tcp_input.c 1.8
6 83/01/08
*/
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
@@
-364,7
+364,8
@@
trimthenstep6:
* If data is received on a connection after the
* user processes are gone, then RST the other end.
*/
* If data is received on a connection after the
* user processes are gone, then RST the other end.
*/
- if ((so->so_state & SS_NOFDREF) && ti->ti_len) {
+ if (so->so_state & SS_NOFDREF && tp->t_state > TCPS_CLOSE_WAIT &&
+ ti->ti_len) {
tcp_close(tp);
tp = 0;
goto dropwithreset;
tcp_close(tp);
tp = 0;
goto dropwithreset;