diff options
Diffstat (limited to 'plugins/check_curl.d')
| -rw-r--r-- | plugins/check_curl.d/check_curl_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_curl.d/check_curl_helpers.c b/plugins/check_curl.d/check_curl_helpers.c index 7be781fc..ad31b847 100644 --- a/plugins/check_curl.d/check_curl_helpers.c +++ b/plugins/check_curl.d/check_curl_helpers.c | |||
| @@ -488,7 +488,7 @@ check_curl_configure_curl(const check_curl_static_curl_config config, | |||
| 488 | curl_easy_setopt(result.curl_state.curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4), | 488 | curl_easy_setopt(result.curl_state.curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4), |
| 489 | "CURLOPT_IPRESOLVE(CURL_IPRESOLVE_V4)"); | 489 | "CURLOPT_IPRESOLVE(CURL_IPRESOLVE_V4)"); |
| 490 | } | 490 | } |
| 491 | #if defined(USE_IPV6) && defined(LIBCURL_FEATURE_IPV6) | 491 | #if defined(LIBCURL_FEATURE_IPV6) |
| 492 | else if (config.sin_family == AF_INET6) { | 492 | else if (config.sin_family == AF_INET6) { |
| 493 | handle_curl_option_return_code( | 493 | handle_curl_option_return_code( |
| 494 | curl_easy_setopt(result.curl_state.curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6), | 494 | curl_easy_setopt(result.curl_state.curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6), |
| @@ -1214,7 +1214,7 @@ mp_subcheck check_curl_certificate_checks(CURL *curl, X509 *cert, int warn_days_ | |||
| 1214 | 1214 | ||
| 1215 | cert_ptr_union cert_ptr = {0}; | 1215 | cert_ptr_union cert_ptr = {0}; |
| 1216 | cert_ptr.to_info = NULL; | 1216 | cert_ptr.to_info = NULL; |
| 1217 | CURLcode res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &cert_ptr.to_info); | 1217 | CURLcode res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &cert_ptr.to_certinfo); |
| 1218 | if (!res && cert_ptr.to_info) { | 1218 | if (!res && cert_ptr.to_info) { |
| 1219 | # ifdef USE_OPENSSL | 1219 | # ifdef USE_OPENSSL |
| 1220 | /* We have no OpenSSL in libcurl, but we can use OpenSSL for X509 cert | 1220 | /* We have no OpenSSL in libcurl, but we can use OpenSSL for X509 cert |
