diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-03-31 16:17:09 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-03-31 16:17:09 +0000 |
commit | 0be69c24d931816c063e89409ff09a605afbcbad (patch) | |
tree | a39a8f43fc93c2c6c9edf53854b214469772f70e /src | |
parent | 3905f70a1f4491c789b6c752361bd257e1f6c931 (diff) | |
download | gnunet-0be69c24d931816c063e89409ff09a605afbcbad.tar.gz gnunet-0be69c24d931816c063e89409ff09a605afbcbad.zip |
- fix
Diffstat (limited to 'src')
-rw-r--r-- | src/identity/plugin_rest_identity.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c index 204da910a..1aecefae9 100644 --- a/src/identity/plugin_rest_identity.c +++ b/src/identity/plugin_rest_identity.c | |||
@@ -440,20 +440,17 @@ ego_create_cont (struct RestConnectionDataHandle *con, | |||
440 | term_data[handle->data_size] = '\0'; | 440 | term_data[handle->data_size] = '\0'; |
441 | memcpy (term_data, handle->data, handle->data_size); | 441 | memcpy (term_data, handle->data, handle->data_size); |
442 | json_obj = GNUNET_REST_jsonapi_object_parse (term_data); | 442 | json_obj = GNUNET_REST_jsonapi_object_parse (term_data); |
443 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "2\n"); | ||
444 | if (NULL == json_obj) | 443 | if (NULL == json_obj) |
445 | { | 444 | { |
446 | GNUNET_SCHEDULER_add_now (&do_error, handle); | 445 | GNUNET_SCHEDULER_add_now (&do_error, handle); |
447 | return; | 446 | return; |
448 | } | 447 | } |
449 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "2.1\n"); | ||
450 | if (1 != GNUNET_REST_jsonapi_object_resource_count (json_obj)) | 448 | if (1 != GNUNET_REST_jsonapi_object_resource_count (json_obj)) |
451 | { | 449 | { |
452 | GNUNET_REST_jsonapi_object_delete (json_obj); | 450 | GNUNET_REST_jsonapi_object_delete (json_obj); |
453 | GNUNET_SCHEDULER_add_now (&do_error, handle); | 451 | GNUNET_SCHEDULER_add_now (&do_error, handle); |
454 | return; | 452 | return; |
455 | } | 453 | } |
456 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "3\n"); | ||
457 | json_res = GNUNET_REST_jsonapi_object_get_resource (json_obj, 0); | 454 | json_res = GNUNET_REST_jsonapi_object_get_resource (json_obj, 0); |
458 | if (GNUNET_NO == GNUNET_REST_jsonapi_resource_check_type (json_res, GNUNET_REST_JSONAPI_IDENTITY_EGO)) | 455 | if (GNUNET_NO == GNUNET_REST_jsonapi_resource_check_type (json_res, GNUNET_REST_JSONAPI_IDENTITY_EGO)) |
459 | { | 456 | { |
@@ -463,7 +460,6 @@ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "3\n"); | |||
463 | cleanup_handle (handle); | 460 | cleanup_handle (handle); |
464 | return; | 461 | return; |
465 | } | 462 | } |
466 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "4\n"); | ||
467 | egoname_json = GNUNET_REST_jsonapi_resource_read_attr (json_res, GNUNET_REST_JSONAPI_KEY_ID); | 463 | egoname_json = GNUNET_REST_jsonapi_resource_read_attr (json_res, GNUNET_REST_JSONAPI_KEY_ID); |
468 | if (!json_is_string (egoname_json)) | 464 | if (!json_is_string (egoname_json)) |
469 | { | 465 | { |