diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-26 22:32:12 +0100 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-26 22:32:12 +0100 |
commit | 33054bb2a8d6272e2f137e8be1833ff9e469c177 (patch) | |
tree | c78739fcf778dc56540877d255ae25766255a672 /src/peerinfo-tool | |
parent | 040ebbd2039e5ae0ba93ad3b7976721088ff6294 (diff) | |
download | gnunet-33054bb2a8d6272e2f137e8be1833ff9e469c177.tar.gz gnunet-33054bb2a8d6272e2f137e8be1833ff9e469c177.zip |
-more coverity fixes
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/plugin_rest_peerinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
379 | result_str = json_dumps (handle->response, 0); | 379 | result_str = json_dumps (handle->response, 0); |
380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str); | 380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str); |
381 | resp = GNUNET_REST_create_response (result_str); | 381 | resp = GNUNET_REST_create_response (result_str); |
382 | MHD_add_response_header (resp, "Content-Type", "application/json"); | 382 | GNUNET_assert (MHD_NO != MHD_add_response_header (resp, |
383 | "Content-Type", | ||
384 | "application/json")); | ||
383 | handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); | 385 | handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); |
384 | GNUNET_free (result_str); | 386 | GNUNET_free (result_str); |
385 | GNUNET_SCHEDULER_add_now (&cleanup_handle, handle); | 387 | GNUNET_SCHEDULER_add_now (&cleanup_handle, handle); |