getinfo: return zero for unsupported options (when disabled)
instead of returning an error code to the getinfo() call. Like other info variables work. Closes #14634
This commit is contained in:
parent
4be599fe78
commit
20d447c1a7
@ -253,11 +253,13 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info,
|
||||
case CURLINFO_SSL_VERIFYRESULT:
|
||||
*param_longp = data->set.ssl.certverifyresult;
|
||||
break;
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
case CURLINFO_PROXY_SSL_VERIFYRESULT:
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
*param_longp = data->set.proxy_ssl.certverifyresult;
|
||||
break;
|
||||
#else
|
||||
*param_longp = 0;
|
||||
#endif
|
||||
break;
|
||||
case CURLINFO_REDIRECT_COUNT:
|
||||
*param_longp = data->state.followlocation;
|
||||
break;
|
||||
@ -315,6 +317,12 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info,
|
||||
case CURLINFO_RTSP_CSEQ_RECV:
|
||||
*param_longp = data->state.rtsp_CSeq_recv;
|
||||
break;
|
||||
#else
|
||||
case CURLINFO_RTSP_CLIENT_CSEQ:
|
||||
case CURLINFO_RTSP_SERVER_CSEQ:
|
||||
case CURLINFO_RTSP_CSEQ_RECV:
|
||||
*param_longp = 0;
|
||||
break;
|
||||
#endif
|
||||
case CURLINFO_HTTP_VERSION:
|
||||
switch(data->info.httpversion) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user