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
@ -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…
Reference in New Issue
Block a user