aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
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/namestore
parent0cdac9e1cfdc299666cc5b89a43e5148bbcd2d2c (diff)
downloadgnunet-1f79562434de77d978eb87477a9b967023bf50f6.tar.gz
gnunet-1f79562434de77d978eb87477a9b967023bf50f6.zip
- add jsonapi tests
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/plugin_rest_namestore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c
index d33bf483b..c47a6a3c8 100644
--- a/src/namestore/plugin_rest_namestore.c
+++ b/src/namestore/plugin_rest_namestore.c
@@ -744,7 +744,8 @@ namestore_create_cont (struct RestConnectionDataHandle *con,
744 } 744 }
745 term_data[handle->data_size] = '\0'; 745 term_data[handle->data_size] = '\0';
746 memcpy (term_data, handle->data, handle->data_size); 746 memcpy (term_data, handle->data, handle->data_size);
747 json_obj = GNUNET_JSONAPI_object_parse (term_data); 747 GNUNET_assert (GNUNET_OK == GNUNET_JSONAPI_object_parse (term_data,
748 &json_obj));
748 if (NULL == json_obj) 749 if (NULL == json_obj)
749 { 750 {
750 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 751 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,