We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e207fdd commit 41bab78Copy full SHA for 41bab78
src/main/java/org/apache/commons/net/telnet/TelnetInputStream.java
@@ -194,12 +194,12 @@ private int __read(boolean mayBlock) throws IOException
194
/* TERMINAL-TYPE option (end)*/
195
case TelnetCommand.IAC:
196
__receiveState = _STATE_DATA;
197
- break;
+ break; // exit to enclosing switch to return IAC from read
198
default:
199
+ __receiveState = _STATE_DATA;
200
+ continue; // move on the next char, i.e. ignore IAC+unknown
201
}
- __receiveState = _STATE_DATA;
202
- continue;
+ break; // exit and return from read
203
case _STATE_WILL:
204
synchronized (__client)
205
{
0 commit comments