summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_http.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 536b400..0a8910c 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -733,7 +733,10 @@ get_content_length (const char *headers)
733 /* Skip to the end of the header, including continuation lines. */ 733 /* Skip to the end of the header, including continuation lines. */
734 while (*s && !(*s == '\n' && (s[1] != ' ' && s[1] != '\t'))) 734 while (*s && !(*s == '\n' && (s[1] != ' ' && s[1] != '\t')))
735 s++; 735 s++;
736 s++; 736
737 /* Avoid stepping over end-of-string marker */
738 if (*s)
739 s++;
737 740
738 /* Process this header. */ 741 /* Process this header. */
739 if (value && value > field+2) { 742 if (value && value > field+2) {