diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-07-23 21:52:26 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-07-23 21:52:26 +0000 |
commit | a2a887b56afec03d01e0d9c2507f64bc595e3aff (patch) | |
tree | 3c1b48a6d3cf3b3648f6830bb5e30fd25bdb1186 /contrib/telnet/telnetd/ext.h | |
parent | 27daeab3ecac3dc7f764b36f22daad2eee56bebb (diff) | |
download | src-a2a887b56afec03d01e0d9c2507f64bc595e3aff.tar.gz src-a2a887b56afec03d01e0d9c2507f64bc595e3aff.zip |
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.
Notes
Notes:
svn path=/head/; revision=80224
Diffstat (limited to 'contrib/telnet/telnetd/ext.h')
-rw-r--r-- | contrib/telnet/telnetd/ext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/telnet/telnetd/ext.h b/contrib/telnet/telnetd/ext.h index 74dd9858f141..0744db1bd4e4 100644 --- a/contrib/telnet/telnetd/ext.h +++ b/contrib/telnet/telnetd/ext.h @@ -190,7 +190,7 @@ extern void wontoption P((int)); int output_data __P((const char *, ...)) __printflike(1, 2); -int output_datalen __P((const char *, size_t)); +void output_datalen __P((const char *, int)); #ifdef ENCRYPTION extern void (*encrypt_output) P((unsigned char *, int)); |