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/194456-check_http_patch.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/attachments/194456-check_http_patch.txt (limited to 'web/attachments/194456-check_http_patch.txt') diff --git a/web/attachments/194456-check_http_patch.txt b/web/attachments/194456-check_http_patch.txt new file mode 100644 index 0000000..45c84cf --- /dev/null +++ b/web/attachments/194456-check_http_patch.txt @@ -0,0 +1,15 @@ +diff -uNr nagios-plugins-1.4.3/plugins/check_http.c nagios-plugins-1.4.3_new/plugins/check_http.c +--- nagios-plugins-1.4.3/plugins/check_http.c 2006-04-05 00:58:27.000000000 -0700 ++++ nagios-plugins-1.4.3_new/plugins/check_http.c 2006-08-30 02:34:35.000000000 -0700 +@@ -1073,9 +1073,8 @@ + die (STATE_UNKNOWN, _("Could not allocate url\n")); + + while (pos) { +- +- if (sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i) < 1) { +- ++ sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i); ++ if (i == 0) { + pos += (size_t) strcspn (pos, "\r\n"); + pos += (size_t) strspn (pos, "\r\n"); + if (strlen(pos) == 0) -- cgit v1.2.3-74-g34f1