← Commit list

33380fa214

Daniel Stenberg
Daniel Stenberg
2025-10-06
SUCCESS Duration: 235s

Subject

telnet: ignore empty suboptions

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/telnet.c+3 -0
@@ -947,6 +947,9 @@ static CURLcode suboption(struct Curl_easy *data, struct TELNET *tn)
int err;
struct connectdata *conn = data->conn;
+ if(!CURL_SB_LEN(tn)) /* ignore empty suboption */
+ return CURLE_OK;
+
printsub(data, '<', (unsigned char *)tn->subbuffer, CURL_SB_LEN(tn) + 2);
switch(CURL_SB_GET(tn)) {
case CURL_TELOPT_TTYPE: