busybox/networking
Denys Vlasenko 2a54b3e86e telnetd: fix handling of short writes to pty
If a write to pty is short, remove_iacs() can be run on a buffer repeatedly.
This, for example, can eat 0xff chars (IACs, in telnet terms).

Rework the logic to handle IACs in a special "write to pty" function.

function                                             old     new   delta
telnetd_main                                        1662    1750     +88

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-10-12 14:54:10 +02:00
..
2016-07-04 17:38:01 +02:00
2015-10-14 12:53:47 +02:00
2015-08-15 21:15:27 +02:00
2014-01-09 20:09:43 +01:00
2015-10-13 17:17:34 +02:00
2015-05-25 13:46:36 +02:00
2016-03-04 07:36:04 +01:00
2016-07-19 17:48:55 +02:00