diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-06-02 14:56:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-06-02 23:03:55 +0200 |
commit | 6793332eba010770c25bcc7019d4d593b035fbe6 (patch) | |
tree | afd146a75a9cd2744f58467fbfbaebd59d2ffc82 /lib/telnet.c | |
parent | 9dc0baf5c611d46ff5136f1e32ef898b438e0aea (diff) | |
download | curl-6793332eba010770c25bcc7019d4d593b035fbe6.tar.gz |
CURLE_SETOPT_OPTION_SYNTAX: new error name for wrong setopt syntax
For options that pass in lists or strings that are subsequently parsed
and must be correct. This broadens the scope for the option previously
known as CURLE_TELNET_OPTION_SYNTAX but the old name is of course still
provided as a #define for existing applications.
Closes #7175
Diffstat (limited to 'lib/telnet.c')
-rw-r--r-- | lib/telnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index fdd137fb0..d1b539455 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -834,7 +834,7 @@ static CURLcode check_telnet_options(struct Curl_easy *data) tn->us_preferred[CURL_TELOPT_NAWS] = CURL_YES; else { failf(data, "Syntax error in telnet option: %s", head->data); - result = CURLE_TELNET_OPTION_SYNTAX; + result = CURLE_SETOPT_OPTION_SYNTAX; break; } continue; @@ -855,7 +855,7 @@ static CURLcode check_telnet_options(struct Curl_easy *data) break; } failf(data, "Syntax error in telnet option: %s", head->data); - result = CURLE_TELNET_OPTION_SYNTAX; + result = CURLE_SETOPT_OPTION_SYNTAX; break; } |