diff options
author | awiddersheim <awiddersheim@hotmail.com> | 2013-09-26 14:27:06 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-26 15:01:28 (GMT) |
commit | d4c5730464ea7f9e701ebd5e57f1ac021d7500c6 (patch) | |
tree | e80cc447f4e3fdcccc56d7032e067c8dccec1b4f /plugins/check_http.c | |
parent | 7193db3c413fcbd454a3127547fb55191432df08 (diff) | |
download | monitoring-plugins-d4c5730464ea7f9e701ebd5e57f1ac021d7500c6.tar.gz |
Die on SSL initialization errors
Fixes issue where if an SSL initialization error occurs on a redirect
using -f follow the plugin still returns an OK state.
Closes #1159.
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index ecd832f..c36d916 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -881,7 +881,7 @@ check_http (void) | |||
881 | gettimeofday (&tv_temp, NULL); | 881 | gettimeofday (&tv_temp, NULL); |
882 | result = np_net_ssl_init_with_hostname_version_and_cert(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey); | 882 | result = np_net_ssl_init_with_hostname_version_and_cert(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey); |
883 | if (result != STATE_OK) | 883 | if (result != STATE_OK) |
884 | return result; | 884 | die (STATE_CRITICAL, NULL); |
885 | microsec_ssl = deltime (tv_temp); | 885 | microsec_ssl = deltime (tv_temp); |
886 | elapsed_time_ssl = (double)microsec_ssl / 1.0e6; | 886 | elapsed_time_ssl = (double)microsec_ssl / 1.0e6; |
887 | if (check_cert == TRUE) { | 887 | if (check_cert == TRUE) { |