mirror of
https://github.com/curl/curl.git
synced 2026-05-30 05:17:30 +03:00
setopt: return error for bad input to CURLOPT_RTSP_REQUEST
And leave the value untouched. Previously, an unrecognized argument would reset it to RTSPREQ_NONE (and still return OK). Closes #15440
This commit is contained in:
parent
74c7b672d9
commit
b7a06dee50
1 changed files with 1 additions and 1 deletions
|
|
@ -1261,7 +1261,7 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
rtspreq = RTSPREQ_RECEIVE;
|
||||
break;
|
||||
default:
|
||||
rtspreq = RTSPREQ_NONE;
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
}
|
||||
|
||||
data->set.rtspreq = rtspreq;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue