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/249657-nagiosplugins-checkhttp-crash.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web/attachments/249657-nagiosplugins-checkhttp-crash.patch (limited to 'web/attachments/249657-nagiosplugins-checkhttp-crash.patch') 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 @@ +--- plugins/check_http.c.old 2007-07-21 18:29:01.000000000 +0200 ++++ plugins/check_http.c 2007-10-14 22:05:26.000000000 +0200 +@@ -1092,7 +1092,7 @@ redir (char *pos, char *status_line) + die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate url\n")); + + while (pos) { +- sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i); ++ sscanf (pos, "%1[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"); -- cgit v1.2.3-74-g34f1