summaryrefslogtreecommitdiff
path: root/src/http-header-glue.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-09-09 02:16:21 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-09 02:16:21 -0400
commita3e9faa4792aa471523284bc1a847dbb7ca4f96d (patch)
tree82c48301d2c12c6ea327225c143506a3d1596ffb /src/http-header-glue.c
parentf364c8ef36c4b65071f5bd8fef44b20e59ed8b7b (diff)
downloadlighttpd-git-a3e9faa4792aa471523284bc1a847dbb7ca4f96d.tar.gz
[multiple] quiet coverity warnings
Diffstat (limited to 'src/http-header-glue.c')
-rw-r--r--src/http-header-glue.c3
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;