summaryrefslogtreecommitdiffstats
path: root/web/attachments/249657-nagiosplugins-checkhttp-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/249657-nagiosplugins-checkhttp-crash.patch')
-rw-r--r--web/attachments/249657-nagiosplugins-checkhttp-crash.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/attachments/249657-nagiosplugins-checkhttp-crash.patch b/web/attachments/249657-nagiosplugins-checkhttp-crash.patch
new file mode 100644
index 0000000..d128581
--- /dev/null
+++ b/web/attachments/249657-nagiosplugins-checkhttp-crash.patch
@@ -0,0 +1,11 @@
1--- plugins/check_http.c.old 2007-07-21 18:29:01.000000000 +0200
2+++ plugins/check_http.c 2007-10-14 22:05:26.000000000 +0200
3@@ -1092,7 +1092,7 @@ redir (char *pos, char *status_line)
4 die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate url\n"));
5
6 while (pos) {
7- sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i);
8+ sscanf (pos, "%1[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i);
9 if (i == 0) {
10 pos += (size_t) strcspn (pos, "\r\n");
11 pos += (size_t) strspn (pos, "\r\n");