diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-08-09 17:57:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-08-09 17:57:48 +0200 |
commit | 19b7901c6562b2b1615f0f1b1d9ffbce50c419dc (patch) | |
tree | 9e155cfcdae24d5e6dfffdea58adb2f3a3183f4b /src | |
parent | 611e5722b528acdc54af9469e976c206983710e6 (diff) |
-allow NULL cb
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index b3825c9c2..589cef2b1 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -366,8 +366,9 @@ TEH_RESPONSE_reply_not_modified ( resp = MHD_create_response_from_buffer (0, NULL, MHD_RESPMEM_PERSISTENT); - cb (cb_cls, - resp); + if (NULL != cb) + cb (cb_cls, + resp); GNUNET_break (MHD_YES == MHD_add_response_header (resp, MHD_HTTP_HEADER_ETAG, |