diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-07 15:36:43 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-09 20:38:11 +0100 |
commit | 141a279fb55bc9b11aaa765ca3ad54689003e291 (patch) | |
tree | 2519ee820288fae481ae972963dea24fd86ffb59 /src/reclaim/reclaim_api.c | |
parent | d06446f143610790d9a0530d524d8e9db2a03b8c (diff) | |
download | gnunet-141a279fb55bc9b11aaa765ca3ad54689003e291.tar.gz gnunet-141a279fb55bc9b11aaa765ca3ad54689003e291.zip |
bugfixes; CLI improvements
Diffstat (limited to 'src/reclaim/reclaim_api.c')
-rw-r--r-- | src/reclaim/reclaim_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c index 5f52aa57b..54288866d 100644 --- a/src/reclaim/reclaim_api.c +++ b/src/reclaim/reclaim_api.c | |||
@@ -561,10 +561,13 @@ check_consume_ticket_result (void *cls, | |||
561 | { | 561 | { |
562 | size_t msg_len; | 562 | size_t msg_len; |
563 | size_t attrs_len; | 563 | size_t attrs_len; |
564 | size_t attests_len; | ||
564 | 565 | ||
565 | msg_len = ntohs (msg->header.size); | 566 | msg_len = ntohs (msg->header.size); |
566 | attrs_len = ntohs (msg->attrs_len); | 567 | attrs_len = ntohs (msg->attrs_len); |
567 | if (msg_len != sizeof(struct ConsumeTicketResultMessage) + attrs_len) | 568 | attests_len = ntohs (msg->attestations_len); |
569 | if (msg_len != | ||
570 | sizeof(struct ConsumeTicketResultMessage) + attrs_len + attests_len) | ||
568 | { | 571 | { |
569 | GNUNET_break (0); | 572 | GNUNET_break (0); |
570 | return GNUNET_SYSERR; | 573 | return GNUNET_SYSERR; |
@@ -628,7 +631,7 @@ handle_consume_ticket_result (void *cls, | |||
628 | for (ale = attests->list_head; NULL != ale; ale = ale->next) | 631 | for (ale = attests->list_head; NULL != ale; ale = ale->next) |
629 | { | 632 | { |
630 | if (GNUNET_YES == | 633 | if (GNUNET_YES == |
631 | GNUNET_RECLAIM_id_is_equal (&le->attribute->id, | 634 | GNUNET_RECLAIM_id_is_equal (&le->attribute->attestation, |
632 | &ale->attestation->id)) | 635 | &ale->attestation->id)) |
633 | { | 636 | { |
634 | op->atr_cb (op->cls, &msg->identity, | 637 | op->atr_cb (op->cls, &msg->identity, |