diff options
author | Tristan Schwieren <tristan.schwieren@tum.de> | 2022-01-07 11:47:29 +0100 |
---|---|---|
committer | Tristan Schwieren <tristan.schwieren@tum.de> | 2022-01-07 11:47:29 +0100 |
commit | d297d768744fe613db6594aa476089c9db3ed4f7 (patch) | |
tree | e45edb8a657fe444904510c7882aa2c689c49ec9 | |
parent | af2cac12594d107338e1a0cb688a370228b0a999 (diff) | |
parent | 821401a3ee83dcd2e33f4cb20c1a98c681613df0 (diff) | |
download | gnunet-d297d768744fe613db6594aa476089c9db3ed4f7.tar.gz gnunet-d297d768744fe613db6594aa476089c9db3ed4f7.zip |
Merge branch 'dev/trizuz/w3cvc' of git+ssh://git.gnunet.org/gnunet into dev/trizuz/w3cvc
-rw-r--r-- | src/reclaim/gnunet-service-reclaim_tickets.c | 7 | ||||
-rw-r--r-- | src/reclaim/reclaim_api.c | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/reclaim/gnunet-service-reclaim_tickets.c b/src/reclaim/gnunet-service-reclaim_tickets.c index 70075bb8e..0dd87aee9 100644 --- a/src/reclaim/gnunet-service-reclaim_tickets.c +++ b/src/reclaim/gnunet-service-reclaim_tickets.c | |||
@@ -1295,14 +1295,13 @@ issue_ticket (struct TicketIssueHandle *ih) | |||
1295 | char *label; | 1295 | char *label; |
1296 | int i; | 1296 | int i; |
1297 | int j; | 1297 | int j; |
1298 | int record_count; | 1298 | int record_count = 1; /* At least 1 record for the ticket */ |
1299 | 1299 | ||
1300 | for (le = ih->attrs->list_head; NULL != le; le = le->next) | 1300 | for (le = ih->attrs->list_head; NULL != le; le = le->next) |
1301 | record_count++; | 1301 | record_count += 2; /* Worst case we have one presentation per attribute */ |
1302 | 1302 | ||
1303 | // Worst case we have one presentation per attribute | ||
1304 | attrs_record = | 1303 | attrs_record = |
1305 | GNUNET_malloc (1 + 2 * record_count * sizeof(struct GNUNET_GNSRECORD_Data)); | 1304 | GNUNET_malloc (record_count * sizeof(struct GNUNET_GNSRECORD_Data)); |
1306 | i = 0; | 1305 | i = 0; |
1307 | for (le = ih->attrs->list_head; NULL != le; le = le->next) | 1306 | for (le = ih->attrs->list_head; NULL != le; le = le->next) |
1308 | { | 1307 | { |
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c index f41473f9f..bc6b835c9 100644 --- a/src/reclaim/reclaim_api.c +++ b/src/reclaim/reclaim_api.c | |||
@@ -1550,7 +1550,6 @@ GNUNET_RECLAIM_ticket_issue ( | |||
1550 | struct IssueTicketMessage *tim; | 1550 | struct IssueTicketMessage *tim; |
1551 | size_t attr_len; | 1551 | size_t attr_len; |
1552 | 1552 | ||
1553 | fprintf (stderr, "Issuing ticket\n"); | ||
1554 | op = GNUNET_new (struct GNUNET_RECLAIM_Operation); | 1553 | op = GNUNET_new (struct GNUNET_RECLAIM_Operation); |
1555 | op->h = h; | 1554 | op->h = h; |
1556 | op->ti_cb = cb; | 1555 | op->ti_cb = cb; |