1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure

This commit is contained in:
Sébastien Helleu
2024-06-01 14:34:41 +02:00
parent 13198697a9
commit a9d1b2990f
4 changed files with 14 additions and 6 deletions
@@ -62,7 +62,7 @@ TEST(RelayWebsocket, DeflateAllocFree)
ws_deflate = relay_websocket_deflate_alloc ();
LONGS_EQUAL(0, ws_deflate->enabled);
LONGS_EQUAL(0, ws_deflate->server_context_takeover);
LONGS_EQUAL(0, ws_deflate->server_context_takeover);
LONGS_EQUAL(0, ws_deflate->client_context_takeover);
LONGS_EQUAL(0, ws_deflate->window_bits_deflate);
LONGS_EQUAL(0, ws_deflate->window_bits_inflate);
POINTERS_EQUAL(NULL, ws_deflate->strm_deflate);