← Commit list

92a2125684

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

Subject

telnet: make bad_option() consider NULL a bad option too

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+1 -1
@@ -930,7 +930,7 @@ static CURLcode check_telnet_options(struct Curl_easy *data,
rather just ban its use instead */
static bool bad_option(const char *data)
{
- return !!strchr(data, CURL_IAC);
+ return !data || !!strchr(data, CURL_IAC);
}
/*