From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/49900-check_http_patch.txt | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 web/attachments/49900-check_http_patch.txt (limited to 'web/attachments/49900-check_http_patch.txt') diff --git a/web/attachments/49900-check_http_patch.txt b/web/attachments/49900-check_http_patch.txt new file mode 100644 index 0000000..84b9205 --- /dev/null +++ b/web/attachments/49900-check_http_patch.txt @@ -0,0 +1,47 @@ +Index: check_http.c +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v +retrieving revision 1.32 +diff -c -r1.32 check_http.c +*** check_http.c 23 Apr 2003 04:58:38 -0000 1.32 +--- check_http.c 8 May 2003 15:55:08 -0000 +*************** +*** 630,645 **** + pagesize += i; + } + +! if (i < 0) { + #ifdef HAVE_SSL +! sslerr=SSL_get_error(ssl, i); +! if ( sslerr == SSL_ERROR_SSL ) { +! terminate (STATE_WARNING, "Client Certificate Required\n"); +! } else { + terminate (STATE_CRITICAL, "Error in recv()"); + } +- #else +- terminate (STATE_CRITICAL, "Error in recv()"); + #endif + } + +--- 630,650 ---- + pagesize += i; + } + +! if (i < 0 && errno != ECONNRESET) { + #ifdef HAVE_SSL +! if (use_ssl) { +! sslerr=SSL_get_error(ssl, i); +! if ( sslerr == SSL_ERROR_SSL ) { +! terminate (STATE_WARNING, "Client Certificate Required\n"); +! } else { +! terminate (STATE_CRITICAL, "Error in recv()"); +! } +! } +! else { +! #endif + terminate (STATE_CRITICAL, "Error in recv()"); ++ #ifdef HAVE_SSL + } + #endif + } + -- cgit v1.2.3-74-g34f1