Skip to content

Commit

Permalink
[mod_wstunnel] quiet coverity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gstrauss committed Feb 16, 2024
1 parent 72d8c6b commit f3a48ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mod_wstunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,9 @@ static int send_rfc_6455(handler_ctx *hctx, mod_wstunnel_frame_type_t type, cons
}
request_st * const r = hctx->gw.r;
http_chunk_append_mem(r, mem, len);
#ifdef __COVERITY__
if (payload == NULL) ck_assert(0 == siz);
#endif
if (siz) http_chunk_append_mem(r, payload, siz);
DEBUG_LOG_DEBUG("send data to client (fd=%d), frame size=%zx",
r->con->fd, len+siz);
Expand Down

0 comments on commit f3a48ac

Please sign in to comment.