diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/check_http.c | 5 |
3 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,8 @@ | |||
1 | This file documents the major additions and syntax changes between releases. | 1 | This file documents the major additions and syntax changes between releases. |
2 | 2 | ||
3 | 1.4.?? ??th ??? 200? | ||
4 | Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) | ||
5 | |||
3 | 1.4.12 27th May 2008 | 6 | 1.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 |
@@ -235,3 +235,4 @@ Matthias Urlichs | |||
235 | Jan Wagner | 235 | Jan Wagner |
236 | Christian Schneemann | 236 | Christian Schneemann |
237 | Rob Windsor | 237 | Rob Windsor |
238 | Hilko Bengen | ||
diff --git a/plugins/check_http.c b/plugins/check_http.c index 42636cd..07e0079 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) { |