diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2018-11-25 23:33:13 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2018-11-25 23:33:13 -0500 |
commit | fed4573fad7b8c5be9d0c69a43c183decad42f1a (patch) | |
tree | b13cc0767c545ca3894467717e1a4f911a292c53 | |
parent | 80638252dcdd3ed8aea276245a902f2ec47f2b4f (diff) | |
download | lighttpd-git-fed4573fad7b8c5be9d0c69a43c183decad42f1a.tar.gz |
[mod_proxy] silence coverity false positive
-rw-r--r-- | src/mod_proxy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mod_proxy.c b/src/mod_proxy.c index e4bd453b..080e5078 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -535,6 +535,9 @@ static void proxy_set_Forwarded(connection *con, const unsigned int flags) { http_header_request_set(con, HTTP_HEADER_FORWARDED, CONST_STR_LEN("Forwarded"), CONST_STR_LEN("x")); /*(must not be blank for _get below)*/ + #ifdef __COVERITY__ + force_assert(NULL != b); /*(not NULL because created directly above)*/ + #endif b = http_header_request_get(con, HTTP_HEADER_FORWARDED, CONST_STR_LEN("Forwarded")); buffer_clear(b); if (NULL != xff) { |