diff options
author | Markus Voggenreiter <Markus.Voggenreiter@tum.de> | 2019-10-16 18:01:02 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-01-13 13:31:02 +0100 |
commit | 483bc7e3095dff908fe8c032ea96995d44304868 (patch) | |
tree | fb435701849ee197b9a073311598867b4088134c /src/reclaim/reclaim_api.c | |
parent | 0def2d57eabbf00947ede47b0e968c0a395ace50 (diff) | |
download | gnunet-483bc7e3095dff908fe8c032ea96995d44304868.tar.gz gnunet-483bc7e3095dff908fe8c032ea96995d44304868.zip |
Prepare Listing Attestations
Diffstat (limited to 'src/reclaim/reclaim_api.c')
-rw-r--r-- | src/reclaim/reclaim_api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c index ed07f78e1..a66bb69f2 100644 --- a/src/reclaim/reclaim_api.c +++ b/src/reclaim/reclaim_api.c | |||
@@ -504,16 +504,16 @@ handle_consume_ticket_result (void *cls, | |||
504 | { | 504 | { |
505 | if (NULL == attrs) | 505 | if (NULL == attrs) |
506 | { | 506 | { |
507 | op->ar_cb (op->cls, &msg->identity, NULL); | 507 | op->ar_cb (op->cls, &msg->identity, NULL, NULL); |
508 | } | 508 | } |
509 | else | 509 | else |
510 | { | 510 | { |
511 | for (le = attrs->list_head; NULL != le; le = le->next) | 511 | for (le = attrs->list_head; NULL != le; le = le->next) |
512 | op->ar_cb (op->cls, &msg->identity, le->claim); | 512 | op->ar_cb (op->cls, &msg->identity, le->claim, NULL); |
513 | GNUNET_RECLAIM_ATTRIBUTE_list_destroy (attrs); | 513 | GNUNET_RECLAIM_ATTRIBUTE_list_destroy (attrs); |
514 | attrs = NULL; | 514 | attrs = NULL; |
515 | } | 515 | } |
516 | op->ar_cb (op->cls, NULL, NULL); | 516 | op->ar_cb (op->cls, NULL, NULL, NULL); |
517 | } | 517 | } |
518 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); | 518 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); |
519 | free_op (op); | 519 | free_op (op); |
@@ -597,7 +597,7 @@ handle_attribute_result (void *cls, const struct AttributeResultMessage *msg) | |||
597 | if (NULL != op) | 597 | if (NULL != op) |
598 | { | 598 | { |
599 | if (NULL != op->ar_cb) | 599 | if (NULL != op->ar_cb) |
600 | op->ar_cb (op->cls, NULL, NULL); | 600 | op->ar_cb (op->cls, NULL, NULL, NULL); |
601 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); | 601 | GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); |
602 | free_op (op); | 602 | free_op (op); |
603 | } | 603 | } |
@@ -610,12 +610,12 @@ handle_attribute_result (void *cls, const struct AttributeResultMessage *msg) | |||
610 | if (NULL != it) | 610 | if (NULL != it) |
611 | { | 611 | { |
612 | if (NULL != it->proc) | 612 | if (NULL != it->proc) |
613 | it->proc (it->proc_cls, &msg->identity, attr); | 613 | it->proc (it->proc_cls, &msg->identity, attr, NULL); |
614 | } | 614 | } |
615 | else if (NULL != op) | 615 | else if (NULL != op) |
616 | { | 616 | { |
617 | if (NULL != op->ar_cb) | 617 | if (NULL != op->ar_cb) |
618 | op->ar_cb (op->cls, &msg->identity, attr); | 618 | op->ar_cb (op->cls, &msg->identity, attr, NULL); |
619 | } | 619 | } |
620 | GNUNET_free (attr); | 620 | GNUNET_free (attr); |
621 | return; | 621 | return; |