diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-11 09:05:49 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-11 09:05:49 (GMT) |
commit | aef79b7f411244385151880683651c884597e4eb (patch) | |
tree | 47415ae85559fecc7e6b869f9e2d3ead857e75aa /plugins | |
parent | 614e9dec5e3f4059c8eb5e4ea11bf92e66c3c76f (diff) | |
download | monitoring-plugins-aef79b7f411244385151880683651c884597e4eb.tar.gz |
Fix Debian bug #460097: check_http -M broken
See: http://bugs.debian.org/460097
One instance of this bug has already been fixed in commit
888358122004b9571c8fbdfa52ceee1ba5e5f4f2.
(Fixed by Hilko Bengen, forwarded by Jan Wagner.)
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 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) { |