diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-09 02:16:21 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-09 02:16:21 -0400 |
commit | a3e9faa4792aa471523284bc1a847dbb7ca4f96d (patch) | |
tree | 82c48301d2c12c6ea327225c143506a3d1596ffb /src/http-header-glue.c | |
parent | f364c8ef36c4b65071f5bd8fef44b20e59ed8b7b (diff) | |
download | lighttpd-git-a3e9faa4792aa471523284bc1a847dbb7ca4f96d.tar.gz |
[multiple] quiet coverity warnings
Diffstat (limited to 'src/http-header-glue.c')
-rw-r--r-- | src/http-header-glue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http-header-glue.c b/src/http-header-glue.c index d4f0e7fa..78421625 100644 --- a/src/http-header-glue.c +++ b/src/http-header-glue.c @@ -785,6 +785,9 @@ static int http_response_process_headers(request_st * const restrict r, http_res /* after the space should be a status code for us */ int status = http_header_str_to_code(s+9); if (status >= 100 && status < 1000) { + #ifdef __COVERITY__ /* Coverity false positive for tainted data */ + status = 200;/* http_header_str_to_code() validates, untaints */ + #endif r->http_status = status; opts->local_redir = 0; /*(disable; status was set)*/ i = 2; |