summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-13 14:48:20 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-13 14:48:20 +0100
commit0111359c72e2fc13049b5c33a7e1449cd0cdf666 (patch)
tree3ca15706e0eca224fd6e9688971515c4e2bd9ed5 /plugins
parentc61b5ef06a83b5fa2d48b256532f30ec5def3658 (diff)
downloadmonitoring-plugins-0111359c72e2fc13049b5c33a7e1449cd0cdf666.tar.gz
check_tcp: Actually account for certificate lifetime checks
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index d1f6b84f..22dcc74e 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -262,7 +262,7 @@ int main(int argc, char **argv) {
262 if (config.use_tls) { 262 if (config.use_tls) {
263 mp_subcheck tls_connection_result = mp_subcheck_init(); 263 mp_subcheck tls_connection_result = mp_subcheck_init();
264 mp_state_enum result = np_net_ssl_init_with_hostname(socket_descriptor, (config.sni_specified ? config.sni : NULL)); 264 mp_state_enum result = np_net_ssl_init_with_hostname(socket_descriptor, (config.sni_specified ? config.sni : NULL));
265 tls_connection_result = mp_set_subcheck_state(tls_connection_result, result); 265 tls_connection_result = mp_set_subcheck_default_state(tls_connection_result, result);
266 266
267 if (result == STATE_OK) { 267 if (result == STATE_OK) {
268 xasprintf(&tls_connection_result.output, "TLS connection succeeded"); 268 xasprintf(&tls_connection_result.output, "TLS connection succeeded");