From: Daniel Stenberg Date: Mon, 6 Oct 2025 08:56:44 +0000 (+0200) Subject: telnet: make bad_option() consider NULL a bad option too X-Git-Tag: rc-8_17_0-1~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92a212568403d985a2614a7d206bf34b7a8fb827;p=thirdparty%2Fcurl.git telnet: make bad_option() consider NULL a bad option too Follow-up to a72e1552f22 Closes #18873 --- diff --git a/lib/telnet.c b/lib/telnet.c index 90316a446c..259a0c8931 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -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); } /*