diff options
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 33020f1b4..9e7a84cce 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -125,6 +125,7 @@ remove_iacs(struct tsession *ts, int *pnum_totty) | |||
125 | /* We map \r\n ==> \r for pragmatic reasons. | 125 | /* We map \r\n ==> \r for pragmatic reasons. |
126 | * Many client implementations send \r\n when | 126 | * Many client implementations send \r\n when |
127 | * the user hits the CarriageReturn key. | 127 | * the user hits the CarriageReturn key. |
128 | * See RFC 1123 3.3.1 Telnet End-of-Line Convention. | ||
128 | */ | 129 | */ |
129 | if (c == '\r' && ptr < end && (*ptr == '\n' || *ptr == '\0')) | 130 | if (c == '\r' && ptr < end && (*ptr == '\n' || *ptr == '\0')) |
130 | ptr++; | 131 | ptr++; |