summaryrefslogtreecommitdiffstats
path: root/web/attachments/194456-check_http_patch.txt
diff options
context:
space:
mode:
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)