diff options
| author | waja <waja@users.noreply.github.com> | 2021-04-13 11:57:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-13 11:57:42 +0200 |
| commit | 9e02b6549a072eff253a5c7dd4b4d62eb18aeadb (patch) | |
| tree | 3a5bb57526ed38b80c67a8ba18bfe09ea1a36ddf | |
| parent | ad148667c8c0bab5e8a77baa95e920e08ca167e8 (diff) | |
| parent | a514dc4708b3e791037191909aaa9fdb885ebe52 (diff) | |
| download | monitoring-plugins-refs/heads/maint-2.3.tar.gz | |
Merge pull request #1674 from bazzisoft/bugfix-status-parsingmaint-2.3
check_curl: Fix bug where headers beginning with HTTP_ cause the status line parsing to fail
| -rw-r--r-- | plugins/check_curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 99833f6f..3e0a6f94 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
| @@ -1995,7 +1995,7 @@ curlhelp_parse_statusline (const char *buf, curlhelp_statusline *status_line) | |||
| 1995 | char *first_line_buf; | 1995 | char *first_line_buf; |
| 1996 | 1996 | ||
| 1997 | /* find last start of a new header */ | 1997 | /* find last start of a new header */ |
| 1998 | start = strrstr2 (buf, "\r\nHTTP"); | 1998 | start = strrstr2 (buf, "\r\nHTTP/"); |
| 1999 | if (start != NULL) { | 1999 | if (start != NULL) { |
| 2000 | start += 2; | 2000 | start += 2; |
| 2001 | buf = start; | 2001 | buf = start; |
