diff options
Diffstat (limited to 'nc.c')
-rw-r--r-- | nc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -111,6 +111,8 @@ int nc_main(int argc, char **argv) | |||
111 | exit(0); | 111 | exit(0); |
112 | ofd = fileno(stdout); | 112 | ofd = fileno(stdout); |
113 | } else { | 113 | } else { |
114 | if (nread == 0) | ||
115 | shutdown(sfd, 1); | ||
114 | ofd = sfd; | 116 | ofd = sfd; |
115 | } | 117 | } |
116 | 118 | ||