From 3f902dba28774b4fd803cff39a87564aa3bad5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 31 Jan 2024 08:59:45 +0100 Subject: [PATCH] relay: check that request is not NULL before compressing data (issue #2066) --- src/plugins/relay/relay-http.c | 3 +++ 1 file changed, 3 insertions(+) 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)