telnet: make printsub require another byte input

Reported in Joshua's sarif data

Closes #18618
This commit is contained in:
Daniel Stenberg 2025-09-19 14:19:26 +02:00
parent df60e8fe70
commit 1055864b03
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;
}