From 257c5a12043fd6a05ce2bf8aaa19fcf90eb10a78 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 12 Apr 2022 21:52:18 +0200 Subject: -make meta data mandatory --- src/stasis/plugin_anastasis_postgres.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'src/stasis/plugin_anastasis_postgres.c') diff --git a/src/stasis/plugin_anastasis_postgres.c b/src/stasis/plugin_anastasis_postgres.c index bfe86da..709228f 100644 --- a/src/stasis/plugin_anastasis_postgres.c +++ b/src/stasis/plugin_anastasis_postgres.c @@ -1030,10 +1030,8 @@ postgres_store_recovery_document ( GNUNET_PQ_query_param_auto_from_type (recovery_data_hash), GNUNET_PQ_query_param_fixed_size (recovery_data, recovery_data_size), - (NULL == recovery_meta_data) - ? GNUNET_PQ_query_param_null () - : GNUNET_PQ_query_param_fixed_size (recovery_meta_data, - recovery_meta_data_size), + GNUNET_PQ_query_param_fixed_size (recovery_meta_data, + recovery_meta_data_size), GNUNET_PQ_query_param_timestamp (&now), GNUNET_PQ_query_param_end }; @@ -2251,20 +2249,17 @@ meta_iterator (void *cls, for (unsigned int i = 0; i