summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2018-11-25 23:33:13 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2018-11-25 23:33:13 -0500
commitfed4573fad7b8c5be9d0c69a43c183decad42f1a (patch)
treeb13cc0767c545ca3894467717e1a4f911a292c53
parent80638252dcdd3ed8aea276245a902f2ec47f2b4f (diff)
downloadlighttpd1.4-fed4573fad7b8c5be9d0c69a43c183decad42f1a.tar.gz
lighttpd1.4-fed4573fad7b8c5be9d0c69a43c183decad42f1a.zip
[mod_proxy] silence coverity false positive
-rw-r--r--src/mod_proxy.c3
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) {