aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/plugin_rest_reclaim.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-04-14 18:45:38 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-04-14 18:45:38 +0200
commit77494b746ad3baa510ddf751c046b0fa802bfd5f (patch)
treedb49f0f92d2d82caf00defdc872eb190bb3e4076 /src/reclaim/plugin_rest_reclaim.c
parentd969447fbb31a42fd0dda4d15356fb2692a0fc1a (diff)
downloadgnunet-77494b746ad3baa510ddf751c046b0fa802bfd5f.tar.gz
gnunet-77494b746ad3baa510ddf751c046b0fa802bfd5f.zip
RECLAIM/REST: Fix attribute update/rest store
Diffstat (limited to 'src/reclaim/plugin_rest_reclaim.c')
-rw-r--r--src/reclaim/plugin_rest_reclaim.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c
index 74071d97b..1a3784e64 100644
--- a/src/reclaim/plugin_rest_reclaim.c
+++ b/src/reclaim/plugin_rest_reclaim.c
@@ -539,8 +539,9 @@ add_attribute_cont (struct GNUNET_REST_RequestHandle *con_handle,
539 /** 539 /**
540 * New ID for attribute 540 * New ID for attribute
541 */ 541 */
542 attribute->id = 542 if (0 == attribute->id)
543 GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_STRONG, UINT64_MAX); 543 attribute->id =
544 GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_STRONG, UINT64_MAX);
544 handle->idp = GNUNET_RECLAIM_connect (cfg); 545 handle->idp = GNUNET_RECLAIM_connect (cfg);
545 exp = GNUNET_TIME_UNIT_HOURS; 546 exp = GNUNET_TIME_UNIT_HOURS;
546 handle->idp_op = GNUNET_RECLAIM_attribute_store ( 547 handle->idp_op = GNUNET_RECLAIM_attribute_store (