commit | 2a54b3e86ebf71d5d5dce7eb95d1aa04a636e780 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Wed Oct 12 14:54:10 2016 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Wed Oct 12 14:54:10 2016 +0200 |
tree | 19ae37522ebebc267d3df00b10217bdbc15d483c | |
parent | 713b5133534d4bd4cfb49caba85eb3f655b6d8fd [diff] |
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>