From: Daniel Stenberg Date: Thu, 19 Sep 2019 08:09:21 +0000 (+0200) Subject: setopt: store CURLOPT_RTSP_SERVER_CSEQ correctly X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f593f6d3bbd5140fbe8ad4cea780197869e4a22;p=curl setopt: store CURLOPT_RTSP_SERVER_CSEQ correctly Fixes bug detected by PVS-Studio Fixes #4374 --- diff --git a/lib/setopt.c b/lib/setopt.c index db3c91a92..7058a249c 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -2500,7 +2500,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param) case CURLOPT_RTSP_SERVER_CSEQ: /* Same as the above, but for server-initiated requests */ - data->state.rtsp_next_client_CSeq = va_arg(param, long); + data->state.rtsp_next_server_CSeq = va_arg(param, long); break; case CURLOPT_INTERLEAVEDATA: