summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 614e9de)
raw | patch | inline | side by side (parent: 614e9de)
author | Holger Weiss <holger@zedat.fu-berlin.de> | |
Sun, 11 Apr 2010 09:05:49 +0000 (11:05 +0200) | ||
committer | Holger Weiss <holger@zedat.fu-berlin.de> | |
Sun, 11 Apr 2010 09:05:49 +0000 (11:05 +0200) |
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.)
One instance of this bug has already been fixed in commit
888358122004b9571c8fbdfa52ceee1ba5e5f4f2.
(Fixed by Hilko Bengen, forwarded by Jan Wagner.)
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 536b40085c138eb8bc122e2998a2ffc44efa3571..0a8910c318fa39a71c8a706b993dfe4bb23b0703 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
/* 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) {