diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-05 01:22:36 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-05 01:22:36 -0400 |
commit | 14fe46f09e8a818def30dadfa439de401577f1fb (patch) | |
tree | 6e85f3d0a3ee613a04ed286c8b60eb5f892bee3f | |
parent | 1417ca79f84c53bc3e363d422e994b7c607d3178 (diff) | |
download | lighttpd-git-14fe46f09e8a818def30dadfa439de401577f1fb.tar.gz |
[core] quiet coverity warning
-rw-r--r-- | src/h1.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -312,7 +312,9 @@ h1_check_upgrade (request_st * const r, connection * const con) { buffer *upgrade = http_header_request_get(r, HTTP_HEADER_UPGRADE, CONST_STR_LEN("Upgrade")); - /*if (NULL == upgrade) return 0;*//*(checked by caller)*/ + #ifdef __COVERITY__ + if (NULL == upgrade) return 0; /*(checked by caller)*/ + #endif buffer * const http_connection = http_header_request_get(r, HTTP_HEADER_CONNECTION, |