mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-28 17:49:11 -04:00
check_http: Don't ignore SSL initialization errors
SSL initialization errors are now handled properly by check_http (#3095106 - Eric Schoeller).
This commit is contained in:
parent
bc3307ed6e
commit
ec2596b92d
1 changed files with 3 additions and 1 deletions
|
|
@ -806,7 +806,9 @@ check_http (void)
|
|||
die (STATE_CRITICAL, _("HTTP CRITICAL - Unable to open TCP socket\n"));
|
||||
#ifdef HAVE_SSL
|
||||
if (use_ssl == TRUE) {
|
||||
np_net_ssl_init_with_hostname_and_version(sd, (use_sni ? host_name : NULL), ssl_version);
|
||||
result = np_net_ssl_init_with_hostname_and_version(sd, (use_sni ? host_name : NULL), ssl_version);
|
||||
if (result != STATE_OK)
|
||||
return result;
|
||||
if (check_cert == TRUE) {
|
||||
result = np_net_ssl_check_cert(days_till_exp);
|
||||
np_net_ssl_cleanup();
|
||||
|
|
|
|||
Loading…
Reference in a new issue