[monitoring-plugins] Remove dead code
Sven Nierlein
git at monitoring-plugins.org
Sat Jan 7 18:40:13 CET 2023
Module: monitoring-plugins
Branch: master
Commit: c0c096d2ef0d838e869a63aba07e6538e46db674
Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
Committer: Sven Nierlein <sven at nierlein.org>
Date: Sun Nov 13 19:01:33 2022 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=c0c096d
Remove dead code
---
plugins/check_http.c | 18 ------------------
1 file changed, 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) {
elapsed_time_transfer = (double)microsec_transfer / 1.0e6;
if (i < 0 && errno != ECONNRESET) {
-#ifdef HAVE_SSL
- /*
- if (use_ssl) {
- sslerr=SSL_get_error(ssl, i);
- if ( sslerr == SSL_ERROR_SSL ) {
- die (STATE_WARNING, _("HTTP WARNING - Client Certificate Required\n"));
- } else {
- die (STATE_CRITICAL, _("HTTP CRITICAL - Error on receive\n"));
- }
- }
- else {
- */
-#endif
die(STATE_CRITICAL, _("HTTP CRITICAL - Error on receive\n"));
-#ifdef HAVE_SSL
- /* XXX
- }
- */
-#endif
}
/* return a CRITICAL status if we couldn't read any data */
More information about the Commits
mailing list