aboutsummaryrefslogtreecommitdiff
path: root/src/gns/plugin_rest_gns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/plugin_rest_gns.c')
-rw-r--r--src/gns/plugin_rest_gns.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c
index 4878669e4..8a3f26041 100644
--- a/src/gns/plugin_rest_gns.c
+++ b/src/gns/plugin_rest_gns.c
@@ -211,11 +211,12 @@ cleanup_handle (struct LookupHandle *handle)
211 * @param tc scheduler context 211 * @param tc scheduler context
212 */ 212 */
213static void 213static void
214do_error (void *cls, 214do_error (void *cls)
215 const struct GNUNET_SCHEDULER_TaskContext *tc)
216{ 215{
217 struct LookupHandle *handle = cls; 216 struct LookupHandle *handle = cls;
218 struct MHD_Response *resp = GNUNET_REST_create_json_response (NULL); 217 struct MHD_Response *resp;
218
219 resp = GNUNET_REST_create_json_response (NULL);
219 handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST); 220 handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST);
220 cleanup_handle (handle); 221 cleanup_handle (handle);
221} 222}
@@ -550,7 +551,7 @@ get_gns_cont (struct RestConnectionDataHandle *conndata_handle,
550 GNUNET_CONTAINER_multihashmap_contains (conndata_handle->url_param_map, 551 GNUNET_CONTAINER_multihashmap_contains (conndata_handle->url_param_map,
551 &key) ) 552 &key) )
552 { 553 {
553 handle->type = GNUNET_GNSRECORD_typename_to_number 554 handle->type = GNUNET_GNSRECORD_typename_to_number
554 (GNUNET_CONTAINER_multihashmap_get (conndata_handle->url_param_map, 555 (GNUNET_CONTAINER_multihashmap_get (conndata_handle->url_param_map,
555 &key)); 556 &key));
556 } 557 }