diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-01-31 08:59:45 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-02-01 21:39:23 +0100 |
commit | 3f902dba28774b4fd803cff39a87564aa3bad5ac (patch) | |
tree | 6fe4285b9e3de6e0ecc71a26e055924cfbf3cbe5 /src/plugins/relay | |
parent | de72fe1db5a3175fe3205b5dad3f714bbb1603a3 (diff) | |
download | weechat-3f902dba28774b4fd803cff39a87564aa3bad5ac.zip |
relay: check that request is not NULL before compressing data (issue #2066)
Diffstat (limited to 'src/plugins/relay')
-rw-r--r-- | src/plugins/relay/relay-http.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-http.c b/src/plugins/relay/relay-http.c index ba56f864d..b81ac39d1 100644 --- a/src/plugins/relay/relay-http.c +++ b/src/plugins/relay/relay-http.c @@ -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) |