From f3a48ac17d726ca1089fcdd813d9a19697fed789 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Fri, 16 Feb 2024 05:31:45 -0500 Subject: [PATCH] [mod_wstunnel] quiet coverity warning --- src/mod_wstunnel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c index bd4571590..2789650f7 100644 --- a/src/mod_wstunnel.c +++ b/src/mod_wstunnel.c @@ -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);