From 888358122004b9571c8fbdfa52ceee1ba5e5f4f2 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Fri, 30 May 2008 23:38:00 +0000 Subject: 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 --- plugins/check_http.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') 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) /* Skip to the end of the header, including continuation lines. */ while (*s && !(*s == '\n' && (s[1] != ' ' && s[1] != '\t'))) s++; - s++; + + /* Avoid stepping over end-of-string marker */ + if (*s) + s++; /* Process this header. */ if (value && value > field+2) { -- cgit v1.2.3-74-g34f1