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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user