[monitoring-plugins] check_http: fix variable type (#2335)

GitHub git at monitoring-plugins.org
Fri Sep 4 14:30:14 CEST 2026


    Module: monitoring-plugins
    Branch: master
    Commit: b59d452c5330d100e592b65cafedda2258d0c377
    Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Fri Sep  4 14:22:02 2026 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=b59d452c

check_http: fix variable type (#2335)

---

 plugins/check_http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/check_http.c b/plugins/check_http.c
index 30908ea9..8e21e402 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -60,7 +60,7 @@ enum {
 #ifdef HAVE_SSL
 static bool check_cert = false;
 static bool continue_after_check_cert = false;
-static int ssl_version = MOPL_NET_TLS_DEFAULT_VERSION;
+static mopl_tls_version ssl_version = MOPL_NET_TLS_DEFAULT_VERSION;
 static int days_till_exp_warn, days_till_exp_crit;
 #	define my_recv(buf, len) ((use_ssl) ? mopl_net_ssl_read(buf, len) : read(sd, buf, len))
 #	define my_send(buf, len) ((use_ssl) ? mopl_net_ssl_write(buf, len) : send(sd, buf, len, 0))



More information about the Commits mailing list