aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/plugin_rest_reclaim.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-10-25 15:03:01 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-10-25 15:03:01 +0900
commit3ae41c6868db101c0b7d5cabc0776a376654bf5d (patch)
tree734e1c75a5ef481a2028a0e4121fdc1141d85575 /src/reclaim/plugin_rest_reclaim.c
parent7a1793b347a72ec0b3437effe6faeb4170f1c445 (diff)
downloadgnunet-3ae41c6868db101c0b7d5cabc0776a376654bf5d.tar.gz
gnunet-3ae41c6868db101c0b7d5cabc0776a376654bf5d.zip
- address coverity findings !coverity
Diffstat (limited to 'src/reclaim/plugin_rest_reclaim.c')
-rw-r--r--src/reclaim/plugin_rest_reclaim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c
index a2f8d96b2..9cc41bf1a 100644
--- a/src/reclaim/plugin_rest_reclaim.c
+++ b/src/reclaim/plugin_rest_reclaim.c
@@ -317,7 +317,7 @@ do_error (void *cls)
317 handle->response_code = MHD_HTTP_BAD_REQUEST; 317 handle->response_code = MHD_HTTP_BAD_REQUEST;
318 } 318 }
319 resp = GNUNET_REST_create_response (json_error); 319 resp = GNUNET_REST_create_response (json_error);
320 MHD_add_response_header (resp, "Content-Type", "application/json"); 320 GNUNET_assert (MHD_NO != MHD_add_response_header (resp, "Content-Type", "application/json"));
321 handle->proc (handle->proc_cls, resp, handle->response_code); 321 handle->proc (handle->proc_cls, resp, handle->response_code);
322 cleanup_handle (handle); 322 cleanup_handle (handle);
323 GNUNET_free (json_error); 323 GNUNET_free (json_error);
@@ -1316,7 +1316,7 @@ options_cont (struct GNUNET_REST_RequestHandle *con_handle,
1316 1316
1317 // For now, independent of path return all options 1317 // For now, independent of path return all options
1318 resp = GNUNET_REST_create_response (NULL); 1318 resp = GNUNET_REST_create_response (NULL);
1319 MHD_add_response_header (resp, "Access-Control-Allow-Methods", allow_methods); 1319 GNUNET_assert (MHD_NO != MHD_add_response_header (resp, "Access-Control-Allow-Methods", allow_methods));
1320 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 1320 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
1321 cleanup_handle (handle); 1321 cleanup_handle (handle);
1322 return; 1322 return;