diff options
Diffstat (limited to 'src/rest/plugin_rest_config.c')
-rw-r--r-- | src/rest/plugin_rest_config.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rest/plugin_rest_config.c b/src/rest/plugin_rest_config.c index 43dea1b9f..d9ae57acd 100644 --- a/src/rest/plugin_rest_config.c +++ b/src/rest/plugin_rest_config.c | |||
@@ -347,7 +347,7 @@ options_cont (struct GNUNET_REST_RequestHandle *con_handle, | |||
347 | * @param proc_cls closure for @a proc | 347 | * @param proc_cls closure for @a proc |
348 | * @return #GNUNET_OK if request accepted | 348 | * @return #GNUNET_OK if request accepted |
349 | */ | 349 | */ |
350 | static void | 350 | static enum GNUNET_GenericReturnValue |
351 | rest_config_process_request (struct GNUNET_REST_RequestHandle *conndata_handle, | 351 | rest_config_process_request (struct GNUNET_REST_RequestHandle *conndata_handle, |
352 | GNUNET_REST_ResultProcessor proc, | 352 | GNUNET_REST_ResultProcessor proc, |
353 | void *proc_cls) | 353 | void *proc_cls) |
@@ -371,9 +371,10 @@ rest_config_process_request (struct GNUNET_REST_RequestHandle *conndata_handle, | |||
371 | if (GNUNET_NO == | 371 | if (GNUNET_NO == |
372 | GNUNET_REST_handle_request (conndata_handle, handlers, &err, handle)) | 372 | GNUNET_REST_handle_request (conndata_handle, handlers, &err, handle)) |
373 | { | 373 | { |
374 | handle->response_code = err.error_code; | 374 | cleanup_handle (handle); |
375 | GNUNET_SCHEDULER_add_now (&do_error, handle); | 375 | return GNUNET_NO; |
376 | } | 376 | } |
377 | return GNUNET_YES; | ||
377 | } | 378 | } |
378 | 379 | ||
379 | 380 | ||