summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-30 23:38:00 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-30 23:38:00 +0000
commit888358122004b9571c8fbdfa52ceee1ba5e5f4f2 (patch)
treebce12eea00c30b13600ce7a8c7fd46988749c45b
parent1ac2899c5241faea503af97f09b81150eda0811c (diff)
downloadmonitoring-plugins-888358122004b9571c8fbdfa52ceee1ba5e5f4f2.tar.gz
Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2008 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--NEWS3
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_http.c5
3 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 3f1fece7..7eb3098f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
1This file documents the major additions and syntax changes between releases. 1This file documents the major additions and syntax changes between releases.
2 2
31.4.?? ??th ??? 200?
4 Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
5
31.4.12 27th May 2008 61.4.12 27th May 2008
4 Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren) 7 Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren)
5 New check_icmp -s option to specify the source IP address 8 New check_icmp -s option to specify the source IP address
diff --git a/THANKS.in b/THANKS.in
index 04a6d3c7..718d0f32 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -235,3 +235,4 @@ Matthias Urlichs
235Jan Wagner 235Jan Wagner
236Christian Schneemann 236Christian Schneemann
237Rob Windsor 237Rob Windsor
238Hilko Bengen
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 42636cd0..07e0079e 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -598,7 +598,10 @@ check_document_dates (const char *headers)
598 /* Skip to the end of the header, including continuation lines. */ 598 /* Skip to the end of the header, including continuation lines. */
599 while (*s && !(*s == '\n' && (s[1] != ' ' && s[1] != '\t'))) 599 while (*s && !(*s == '\n' && (s[1] != ' ' && s[1] != '\t')))
600 s++; 600 s++;
601 s++; 601
602 /* Avoid stepping over end-of-string marker */
603 if (*s)
604 s++;
602 605
603 /* Process this header. */ 606 /* Process this header. */
604 if (value && value > field+2) { 607 if (value && value > field+2) {