1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

relay: check that request is not NULL before compressing data (issue #2066)

This commit is contained in:
Sébastien Helleu
2024-01-31 08:59:45 +01:00
parent de72fe1db5
commit 3f902dba28
+3
View File
@@ -977,6 +977,9 @@ relay_http_compress (struct t_relay_http_request *request,
size_t zstd_comp_size;
#endif
if (!request)
return NULL;
if (compressed_size)
*compressed_size = 0;
if (http_content_encoding)