diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-11-13 19:01:33 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2023-01-07 18:34:46 +0100 |
commit | c0c096d2ef0d838e869a63aba07e6538e46db674 (patch) | |
tree | 12975bc5530f67d169a53c93abe672bc75ebf959 /plugins/check_http.c | |
parent | 2315f59835a51dc29a16c435ca5cbda7039c433a (diff) | |
download | monitoring-plugins-c0c096d2ef0d838e869a63aba07e6538e46db674.tar.gz |
Remove dead code
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 440c8422..ca8746b7 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -1111,25 +1111,7 @@ int check_http(void) { | |||
1111 | elapsed_time_transfer = (double)microsec_transfer / 1.0e6; | 1111 | elapsed_time_transfer = (double)microsec_transfer / 1.0e6; |
1112 | 1112 | ||
1113 | if (i < 0 && errno != ECONNRESET) { | 1113 | if (i < 0 && errno != ECONNRESET) { |
1114 | #ifdef HAVE_SSL | ||
1115 | /* | ||
1116 | if (use_ssl) { | ||
1117 | sslerr=SSL_get_error(ssl, i); | ||
1118 | if ( sslerr == SSL_ERROR_SSL ) { | ||
1119 | die (STATE_WARNING, _("HTTP WARNING - Client Certificate Required\n")); | ||
1120 | } else { | ||
1121 | die (STATE_CRITICAL, _("HTTP CRITICAL - Error on receive\n")); | ||
1122 | } | ||
1123 | } | ||
1124 | else { | ||
1125 | */ | ||
1126 | #endif | ||
1127 | die(STATE_CRITICAL, _("HTTP CRITICAL - Error on receive\n")); | 1114 | die(STATE_CRITICAL, _("HTTP CRITICAL - Error on receive\n")); |
1128 | #ifdef HAVE_SSL | ||
1129 | /* XXX | ||
1130 | } | ||
1131 | */ | ||
1132 | #endif | ||
1133 | } | 1115 | } |
1134 | 1116 | ||
1135 | /* return a CRITICAL status if we couldn't read any data */ | 1117 | /* return a CRITICAL status if we couldn't read any data */ |