summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-01-31 08:59:45 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-02-01 21:39:23 +0100
commit3f902dba28774b4fd803cff39a87564aa3bad5ac (patch)
tree6fe4285b9e3de6e0ecc71a26e055924cfbf3cbe5 /src/plugins/relay
parentde72fe1db5a3175fe3205b5dad3f714bbb1603a3 (diff)
downloadweechat-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.c3
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)