summaryrefslogtreecommitdiffstats
path: root/web/attachments/194456-check_http_patch.txt
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/194456-check_http_patch.txt
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/194456-check_http_patch.txt')
-rw-r--r--web/attachments/194456-check_http_patch.txt15
1 files changed, 15 insertions, 0 deletions
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 @@
1diff -uNr nagios-plugins-1.4.3/plugins/check_http.c nagios-plugins-1.4.3_new/plugins/check_http.c
2--- nagios-plugins-1.4.3/plugins/check_http.c 2006-04-05 00:58:27.000000000 -0700
3+++ nagios-plugins-1.4.3_new/plugins/check_http.c 2006-08-30 02:34:35.000000000 -0700
4@@ -1073,9 +1073,8 @@
5 die (STATE_UNKNOWN, _("Could not allocate url\n"));
6
7 while (pos) {
8-
9- if (sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i) < 1) {
10-
11+ sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i);
12+ if (i == 0) {
13 pos += (size_t) strcspn (pos, "\r\n");
14 pos += (size_t) strspn (pos, "\r\n");
15 if (strlen(pos) == 0)