aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-service-reclaim_tickets.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-06 16:52:39 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-06 16:52:39 +0200
commit079beb884ac4236f993736c664660c3892560c9b (patch)
tree44697c4f22dc0ec92c56da4c3e05c1d87ce6b608 /src/reclaim/gnunet-service-reclaim_tickets.c
parent6ab14a20690a499ad32e3f2ad448d64d4e6b65fc (diff)
downloadgnunet-079beb884ac4236f993736c664660c3892560c9b.tar.gz
gnunet-079beb884ac4236f993736c664660c3892560c9b.zip
-fix serialization
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim_tickets.c')
-rw-r--r--src/reclaim/gnunet-service-reclaim_tickets.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/reclaim/gnunet-service-reclaim_tickets.c b/src/reclaim/gnunet-service-reclaim_tickets.c
index 7e6b07514..af01d8ec7 100644
--- a/src/reclaim/gnunet-service-reclaim_tickets.c
+++ b/src/reclaim/gnunet-service-reclaim_tickets.c
@@ -694,8 +694,9 @@ rvk_move_attr_cb (void *cls,
694 { 694 {
695 /** find a new place for this attribute **/ 695 /** find a new place for this attribute **/
696 struct GNUNET_RECLAIM_Attribute *claim; 696 struct GNUNET_RECLAIM_Attribute *claim;
697 claim = GNUNET_RECLAIM_attribute_deserialize (rd[i].data, 697 GNUNET_RECLAIM_attribute_deserialize (rd[i].data,
698 rd[i].data_size); 698 rd[i].data_size,
699 &claim);
699 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 700 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
700 "Attribute to update: Name=%s\n", 701 "Attribute to update: Name=%s\n",
701 claim->name); 702 claim->name);
@@ -1029,8 +1030,8 @@ process_parallel_lookup_result (void *cls,
1029 if (GNUNET_GNSRECORD_TYPE_RECLAIM_ATTRIBUTE == rd[i].record_type) 1030 if (GNUNET_GNSRECORD_TYPE_RECLAIM_ATTRIBUTE == rd[i].record_type)
1030 { 1031 {
1031 attr_le = GNUNET_new (struct GNUNET_RECLAIM_AttributeListEntry); 1032 attr_le = GNUNET_new (struct GNUNET_RECLAIM_AttributeListEntry);
1032 attr_le->attribute = 1033 GNUNET_RECLAIM_attribute_deserialize (rd[i].data, rd[i].data_size,
1033 GNUNET_RECLAIM_attribute_deserialize (rd[i].data, rd[i].data_size); 1034 &attr_le->attribute);
1034 GNUNET_CONTAINER_DLL_insert (cth->attrs->list_head, 1035 GNUNET_CONTAINER_DLL_insert (cth->attrs->list_head,
1035 cth->attrs->list_tail, 1036 cth->attrs->list_tail,
1036 attr_le); 1037 attr_le);
@@ -1298,6 +1299,9 @@ issue_ticket (struct TicketIssueHandle *ih)
1298 i = 0; 1299 i = 0;
1299 for (le = ih->attrs->list_head; NULL != le; le = le->next) 1300 for (le = ih->attrs->list_head; NULL != le; le = le->next)
1300 { 1301 {
1302 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1303 "Adding list entry: %s\n", le->attribute->name);
1304
1301 attrs_record[i].data = &le->attribute->id; 1305 attrs_record[i].data = &le->attribute->id;
1302 attrs_record[i].data_size = sizeof(le->attribute->id); 1306 attrs_record[i].data_size = sizeof(le->attribute->id);
1303 attrs_record[i].expiration_time = ticket_refresh_interval.rel_value_us; 1307 attrs_record[i].expiration_time = ticket_refresh_interval.rel_value_us;