mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
telnet: make bad_option() consider NULL a bad option too
Follow-up to a72e1552f2
Closes #18873
This commit is contained in:
parent
2b0e7cb7c6
commit
92a2125684
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue