diff options
author | Denys Vlasenko | 2012-09-13 13:00:49 +0200 |
---|---|---|
committer | Denys Vlasenko | 2012-09-13 13:00:49 +0200 |
commit | aca464ddac4b86211f138203c4a1d1e3c69a2230 (patch) | |
tree | af8f65a58178d112d902f856ad081af7ca7d3e71 /networking/telnetd.c | |
parent | 6d463de46b418e6c4c8d1397033608f78b33ab21 (diff) | |
download | busybox-aca464ddac4b86211f138203c4a1d1e3c69a2230.zip busybox-aca464ddac4b86211f138203c4a1d1e3c69a2230.tar.gz |
telnet: convert CR -> CR LF, not CR -> CR NUL when sending data to server
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 33020f1..9e7a84c 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -125,6 +125,7 @@ remove_iacs(struct tsession *ts, int *pnum_totty) /* We map \r\n ==> \r for pragmatic reasons. * Many client implementations send \r\n when * the user hits the CarriageReturn key. + * See RFC 1123 3.3.1 Telnet End-of-Line Convention. */ if (c == '\r' && ptr < end && (*ptr == '\n' || *ptr == '\0')) ptr++; |