diff --git a/src/telnet_basic.c b/src/telnet_basic.c index 2b8cf9a..4653ba7 100644 --- a/src/telnet_basic.c +++ b/src/telnet_basic.c @@ -144,7 +144,7 @@ int telnet_rx(tn_ctx_t * tcc, char *buf, int *plen) /* We have IAC (= 0xff) */ np = rem - (p - s); /* N. chars available incl. IAC */ if (np < 2) - return 1; + goto tn_more; pu = (unsigned char *)p; b1 = pu[1];