diff --git a/lib/setopt.c b/lib/setopt.c index 48642602a7..4f06972127 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -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;