From 94bd59e1e05ac07a62dc7d0a7e5d22eac9242ed7 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Mon, 13 Feb 2023 09:30:29 +0100 Subject: [PATCH] ttynvt: Partial read fix Somehow forgotten initially. --- src/telnet_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];