Module: monitoring-plugins
Branch: master
Commit: 35a13449955a969f10f74ac9cab9fed4531a1ca7
Author: Lorenz Kästle <[email protected]>
Date: Fri Jan 9 13:12:31 2026 +0100
URL:
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=35a13449
check_curl: fix pointer type
---
plugins/check_curl.d/check_curl_helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_curl.d/check_curl_helpers.c
b/plugins/check_curl.d/check_curl_helpers.c
index 7be781fc..5af00973 100644
--- a/plugins/check_curl.d/check_curl_helpers.c
+++ b/plugins/check_curl.d/check_curl_helpers.c
@@ -1214,7 +1214,7 @@ mp_subcheck check_curl_certificate_checks(CURL *curl,
X509 *cert, int warn_days_
cert_ptr_union cert_ptr = {0};
cert_ptr.to_info = NULL;
- CURLcode res = curl_easy_getinfo(curl, CURLINFO_CERTINFO,
&cert_ptr.to_info);
+ CURLcode res = curl_easy_getinfo(curl, CURLINFO_CERTINFO,
&cert_ptr.to_certinfo);
if (!res && cert_ptr.to_info) {
# ifdef USE_OPENSSL
/* We have no OpenSSL in libcurl, but we can use
OpenSSL for X509 cert