]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
telnet: make printsub require another byte input
authorDaniel Stenberg <daniel@haxx.se>
Fri, 19 Sep 2025 12:19:26 +0000 (14:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 Sep 2025 12:40:09 +0000 (14:40 +0200)
Reported in Joshua's sarif data

Closes #18618

lib/telnet.c

index cc827c1b3e8a1684e611cd26ec22fc4c98455818..05e5ebe60cc78df7af905f6746c02c979d666dff 100644 (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;
     }