diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_http.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |
