aboutsummaryrefslogtreecommitdiff
path: root/src/identity/plugin_rest_identity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity/plugin_rest_identity.c')
-rw-r--r--src/identity/plugin_rest_identity.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c
index 22ade6a0e..5bed8af55 100644
--- a/src/identity/plugin_rest_identity.c
+++ b/src/identity/plugin_rest_identity.c
@@ -257,9 +257,9 @@ cleanup_handle (struct RequestHandle *handle)
257 257
258 258
259/** 259/**
260 * Task run on shutdown. Cleans up everything. 260 * Task run on errors. Reports an error and cleans up everything.
261 * 261 *
262 * @param cls unused 262 * @param cls the `struct RequestHandle`
263 */ 263 */
264static void 264static void
265do_error (void *cls) 265do_error (void *cls)
@@ -273,7 +273,9 @@ do_error (void *cls)
273 &handle->emsg); 273 &handle->emsg);
274 274
275 resp = GNUNET_REST_create_json_response (json_error); 275 resp = GNUNET_REST_create_json_response (json_error);
276 handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST); 276 handle->proc (handle->proc_cls,
277 resp,
278 MHD_HTTP_BAD_REQUEST);
277 cleanup_handle (handle); 279 cleanup_handle (handle);
278 GNUNET_free (json_error); 280 GNUNET_free (json_error);
279} 281}