aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-service-reclaim_tickets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim_tickets.c')
-rw-r--r--src/reclaim/gnunet-service-reclaim_tickets.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/reclaim/gnunet-service-reclaim_tickets.c b/src/reclaim/gnunet-service-reclaim_tickets.c
index ef2303bd7..48b3fe214 100644
--- a/src/reclaim/gnunet-service-reclaim_tickets.c
+++ b/src/reclaim/gnunet-service-reclaim_tickets.c
@@ -690,7 +690,10 @@ rvk_move_attr_cb (void *cls,
690 return; 690 return;
691 } 691 }
692 GNUNET_RECLAIM_id_generate (&rvk->move_attr->new_id); 692 GNUNET_RECLAIM_id_generate (&rvk->move_attr->new_id);
693 new_label = NULL; 693 new_label =
694 GNUNET_STRINGS_data_to_string_alloc (&rvk->move_attr->new_id,
695 sizeof (rvk->move_attr->new_id));
696
694 attr_data = NULL; 697 attr_data = NULL;
695 // new_rd = *rd; 698 // new_rd = *rd;
696 for (int i = 0; i < rd_count; i++) 699 for (int i = 0; i < rd_count; i++)
@@ -714,9 +717,6 @@ rvk_move_attr_cb (void *cls,
714 new_rd[i].record_type = rd[i].record_type; 717 new_rd[i].record_type = rd[i].record_type;
715 new_rd[i].flags = rd[i].flags; 718 new_rd[i].flags = rd[i].flags;
716 new_rd[i].expiration_time = rd[i].expiration_time; 719 new_rd[i].expiration_time = rd[i].expiration_time;
717 new_label =
718 GNUNET_STRINGS_data_to_string_alloc (&rvk->move_attr->new_id,
719 sizeof (rvk->move_attr->new_id));
720 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding attribute %s\n", new_label); 720 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding attribute %s\n", new_label);
721 GNUNET_free (claim); 721 GNUNET_free (claim);
722 } 722 }
@@ -738,9 +738,6 @@ rvk_move_attr_cb (void *cls,
738 new_rd[i].record_type = rd[i].record_type; 738 new_rd[i].record_type = rd[i].record_type;
739 new_rd[i].flags = rd[i].flags; 739 new_rd[i].flags = rd[i].flags;
740 new_rd[i].expiration_time = rd[i].expiration_time; 740 new_rd[i].expiration_time = rd[i].expiration_time;
741 new_label =
742 GNUNET_STRINGS_data_to_string_alloc (&rvk->move_attr->new_id,
743 sizeof (rvk->move_attr->new_id));
744 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding credential %s\n", 741 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding credential %s\n",
745 new_label); 742 new_label);
746 GNUNET_free (credential); 743 GNUNET_free (credential);
@@ -1400,7 +1397,7 @@ issue_ticket (struct TicketIssueHandle *ih)
1400 attrs_record, 1397 attrs_record,
1401 &store_ticket_issue_cont, 1398 &store_ticket_issue_cont,
1402 ih); 1399 ih);
1403 for (j = 0; j > i; j++) 1400 for (j = 0; j < i; j++)
1404 { 1401 {
1405 if (attrs_record[j].record_type 1402 if (attrs_record[j].record_type
1406 != GNUNET_GNSRECORD_TYPE_RECLAIM_PRESENTATION) 1403 != GNUNET_GNSRECORD_TYPE_RECLAIM_PRESENTATION)
@@ -1585,7 +1582,7 @@ filter_tickets_cb (void *cls,
1585 cleanup_issue_handle (tih); 1582 cleanup_issue_handle (tih);
1586 return; 1583 return;
1587 } 1584 }
1588 1585 GNUNET_RECLAIM_presentation_list_destroy (ticket_presentations);
1589 // ticket not found in current record, checking next record set 1586 // ticket not found in current record, checking next record set
1590 GNUNET_NAMESTORE_zone_iterator_next (tih->ns_it, 1); 1587 GNUNET_NAMESTORE_zone_iterator_next (tih->ns_it, 1);
1591} 1588}