summaryrefslogtreecommitdiffstats
path: root/contrib/telnet/telnetd/telnetd.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-07-23 21:52:26 +0000
committerkris <kris@FreeBSD.org>2001-07-23 21:52:26 +0000
commitd05113329370acaef185fddba13412afb6e9a48e (patch)
tree3c1b48a6d3cf3b3648f6830bb5e30fd25bdb1186 /contrib/telnet/telnetd/telnetd.c
parent512b8c359f8701836cb505107ceab0c5c104d02f (diff)
downloadFreeBSD-src-d05113329370acaef185fddba13412afb6e9a48e.zip
FreeBSD-src-d05113329370acaef185fddba13412afb6e9a48e.tar.gz
output_data(), output_datalen() and netflush() didn't actually guarantee
to do what they are supposed to: under some circumstances output data would be truncated, or the buffer would not actually be flushed (possibly leading to overflows when the caller assumes the operation succeeded). Change the semantics so that these functions ensure they complete the operation before returning. Comment out diagnostic code enabled by '-D reports' which causes an infinite recursion and an eventual crash. Patch developed with assistance from ru and assar.
Diffstat (limited to 'contrib/telnet/telnetd/telnetd.c')
-rw-r--r--contrib/telnet/telnetd/telnetd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c
index 60353d6..7ae4568 100644
--- a/contrib/telnet/telnetd/telnetd.c
+++ b/contrib/telnet/telnetd/telnetd.c
@@ -952,7 +952,6 @@ telnet(f, p, host)
char *HE;
char *HN;
char *IM;
- void netflush();
int nfd;
/*
OpenPOWER on IntegriCloud