From: Daniel Stenberg Date: Fri, 19 Sep 2025 12:19:26 +0000 (+0200) Subject: telnet: make printsub require another byte input X-Git-Tag: rc-8_17_0-1~341 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1055864b03beee1615c04421854e5e927a0cdb5d;p=thirdparty%2Fcurl.git telnet: make printsub require another byte input Reported in Joshua's sarif data Closes #18618 --- diff --git a/lib/telnet.c b/lib/telnet.c index cc827c1b3e..05e5ebe60c 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -713,7 +713,7 @@ static void printsub(struct Curl_easy *data, else /* bad input */ return; } - if(length < 1) { + if(length <= 1) { infof(data, "(Empty suboption?)"); return; }