From 33054bb2a8d6272e2f137e8be1833ff9e469c177 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 26 Mar 2021 22:32:12 +0100 Subject: -more coverity fixes --- src/peerinfo-tool/plugin_rest_peerinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/peerinfo-tool') diff --git a/src/peerinfo-tool/plugin_rest_peerinfo.c b/src/peerinfo-tool/plugin_rest_peerinfo.c index 4bbc7442e..f969a175b 100644 --- a/src/peerinfo-tool/plugin_rest_peerinfo.c +++ b/src/peerinfo-tool/plugin_rest_peerinfo.c @@ -379,7 +379,9 @@ peerinfo_list_finished (void *cls) result_str = json_dumps (handle->response, 0); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str); resp = GNUNET_REST_create_response (result_str); - MHD_add_response_header (resp, "Content-Type", "application/json"); + GNUNET_assert (MHD_NO != MHD_add_response_header (resp, + "Content-Type", + "application/json")); handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); GNUNET_free (result_str); GNUNET_SCHEDULER_add_now (&cleanup_handle, handle); -- cgit v1.2.3