aboutsummaryrefslogtreecommitdiff
path: root/src/identity/plugin_rest_identity.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2016-05-03 09:33:01 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2016-05-03 09:33:01 +0000
commit1f79562434de77d978eb87477a9b967023bf50f6 (patch)
treec48f3c928e16d16f6c2844b01f00a9f4fdbd925f /src/identity/plugin_rest_identity.c
parent0cdac9e1cfdc299666cc5b89a43e5148bbcd2d2c (diff)
downloadgnunet-1f79562434de77d978eb87477a9b967023bf50f6.tar.gz
gnunet-1f79562434de77d978eb87477a9b967023bf50f6.zip
- add jsonapi tests
Diffstat (limited to 'src/identity/plugin_rest_identity.c')
-rw-r--r--src/identity/plugin_rest_identity.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c
index b827bfb2b..10836f103 100644
--- a/src/identity/plugin_rest_identity.c
+++ b/src/identity/plugin_rest_identity.c
@@ -504,7 +504,8 @@ ego_create_cont (struct RestConnectionDataHandle *con,
504 } 504 }
505 term_data[handle->data_size] = '\0'; 505 term_data[handle->data_size] = '\0';
506 memcpy (term_data, handle->data, handle->data_size); 506 memcpy (term_data, handle->data, handle->data_size);
507 json_obj = GNUNET_JSONAPI_object_parse (term_data); 507 GNUNET_assert (GNUNET_OK == GNUNET_JSONAPI_object_parse (term_data,
508 &json_obj));
508 if (NULL == json_obj) 509 if (NULL == json_obj)
509 { 510 {
510 GNUNET_SCHEDULER_add_now (&do_error, handle); 511 GNUNET_SCHEDULER_add_now (&do_error, handle);
@@ -618,7 +619,8 @@ ego_edit_cont (struct RestConnectionDataHandle *con,
618 619
619 term_data[handle->data_size] = '\0'; 620 term_data[handle->data_size] = '\0';
620 memcpy (term_data, handle->data, handle->data_size); 621 memcpy (term_data, handle->data, handle->data_size);
621 json_obj = GNUNET_JSONAPI_object_parse (term_data); 622 GNUNET_assert (GNUNET_OK == GNUNET_JSONAPI_object_parse (term_data,
623 &json_obj));
622 624
623 if (NULL == json_obj) 625 if (NULL == json_obj)
624 { 626 {