summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-11-13 18:01:33 (GMT)
committerSven Nierlein <sven@nierlein.org>2023-01-07 17:34:46 (GMT)
commitc0c096d2ef0d838e869a63aba07e6538e46db674 (patch)
tree12975bc5530f67d169a53c93abe672bc75ebf959
parent2315f59835a51dc29a16c435ca5cbda7039c433a (diff)
downloadmonitoring-plugins-c0c096d.tar.gz
Remove dead code
-rw-r--r--plugins/check_http.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 440c842..ca8746b 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 */