mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
check_tcp: Actually account for certificate lifetime checks
This commit is contained in:
parent
c61b5ef06a
commit
0111359c72
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ int main(int argc, char **argv) {
|
|||
if (config.use_tls) {
|
||||
mp_subcheck tls_connection_result = mp_subcheck_init();
|
||||
mp_state_enum result = np_net_ssl_init_with_hostname(socket_descriptor, (config.sni_specified ? config.sni : NULL));
|
||||
tls_connection_result = mp_set_subcheck_state(tls_connection_result, result);
|
||||
tls_connection_result = mp_set_subcheck_default_state(tls_connection_result, result);
|
||||
|
||||
if (result == STATE_OK) {
|
||||
xasprintf(&tls_connection_result.output, "TLS connection succeeded");
|
||||
|
|
|
|||
Loading…
Reference in a new issue