commit 9529854794d9808a8298b8286a602114153a60df
parent 315e7a80da382683a786aba2cd0ce9d6f574e51e
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 1 Apr 2025 22:03:11 +0200
fix npe
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mhd/mhd2_responses.c b/src/mhd/mhd2_responses.c
@@ -73,6 +73,8 @@ TALER_MHD2_can_compress (struct MHD_Request *request)
aeb = MHD_request_get_value (request,
MHD_VK_HEADER,
MHD_HTTP_HEADER_ACCEPT_ENCODING);
+ if (NULL == aeb)
+ return false;
ae = aeb->cstr;
if (NULL == ae)
return false;