summaryrefslogtreecommitdiff
path: root/src/restclient
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-12 21:52:18 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-12 21:52:18 +0200
commit257c5a12043fd6a05ce2bf8aaa19fcf90eb10a78 (patch)
tree38c115b7c511450348d4c8acaca627a9a57d10a5 /src/restclient
parentadf5df0e1a05adc1abbbfdcd62385db89c9aa00c (diff)
downloadanastasis-257c5a12043fd6a05ce2bf8aaa19fcf90eb10a78.tar.gz
anastasis-257c5a12043fd6a05ce2bf8aaa19fcf90eb10a78.tar.bz2
anastasis-257c5a12043fd6a05ce2bf8aaa19fcf90eb10a78.zip
-make meta data mandatory
Diffstat (limited to 'src/restclient')
-rw-r--r--src/restclient/anastasis_api_policy_meta_lookup.c8
-rw-r--r--src/restclient/anastasis_api_policy_store.c1
2 files changed, 3 insertions, 6 deletions
diff --git a/src/restclient/anastasis_api_policy_meta_lookup.c b/src/restclient/anastasis_api_policy_meta_lookup.c
index 43c966e..3d1482f 100644
--- a/src/restclient/anastasis_api_policy_meta_lookup.c
+++ b/src/restclient/anastasis_api_policy_meta_lookup.c
@@ -134,11 +134,9 @@ handle_policy_meta_lookup_finished (void *cls,
unsigned int ver;
char dummy;
struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_varsize ("meta",
- &md[off],
- &metas[off].meta_data_size),
- NULL),
+ GNUNET_JSON_spec_varsize ("meta",
+ &md[off],
+ &metas[off].meta_data_size),
GNUNET_JSON_spec_timestamp ("upload_time",
&metas[off].server_time),
GNUNET_JSON_spec_end ()
diff --git a/src/restclient/anastasis_api_policy_store.c b/src/restclient/anastasis_api_policy_store.c
index 2432079..7a8925f 100644
--- a/src/restclient/anastasis_api_policy_store.c
+++ b/src/restclient/anastasis_api_policy_store.c
@@ -428,7 +428,6 @@ ANASTASIS_policy_store (
job_headers = ext;
/* Setup meta-data header */
- if (NULL != recovery_meta_data)
{
char *meta_val;