aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/reclaim_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/reclaim_api.c')
-rw-r--r--src/reclaim/reclaim_api.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c
index f4f2b946a..c08cc868c 100644
--- a/src/reclaim/reclaim_api.c
+++ b/src/reclaim/reclaim_api.c
@@ -651,18 +651,15 @@ handle_consume_ticket_result (void *cls,
651 le->attribute, NULL); 651 le->attribute, NULL);
652 } 652 }
653 } 653 }
654 if (NULL != attrs)
655 GNUNET_RECLAIM_attribute_list_destroy (attrs);
656 if (NULL != pl)
657 GNUNET_RECLAIM_presentation_list_destroy (pl);
658 attrs = NULL;
659 pl = NULL;
660 } 654 }
661 op->atr_cb (op->cls, NULL, NULL, NULL); 655 op->atr_cb (op->cls, NULL, NULL, NULL);
662 } 656 }
657 if (NULL != attrs)
658 GNUNET_RECLAIM_attribute_list_destroy (attrs);
659 if (NULL != pl)
660 GNUNET_RECLAIM_presentation_list_destroy (pl);
663 GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); 661 GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op);
664 free_op (op); 662 free_op (op);
665 GNUNET_free (attrs);
666 return; 663 return;
667 } 664 }
668 GNUNET_assert (0); 665 GNUNET_assert (0);
@@ -804,7 +801,7 @@ check_credential_result (void *cls, const struct CredentialResultMessage *msg)
804 */ 801 */
805static void 802static void
806handle_credential_result (void *cls, const struct 803handle_credential_result (void *cls, const struct
807 CredentialResultMessage *msg) 804 CredentialResultMessage *msg)
808{ 805{
809 static struct GNUNET_IDENTITY_PrivateKey identity_dummy; 806 static struct GNUNET_IDENTITY_PrivateKey identity_dummy;
810 struct GNUNET_RECLAIM_Handle *h = cls; 807 struct GNUNET_RECLAIM_Handle *h = cls;
@@ -871,6 +868,7 @@ handle_credential_result (void *cls, const struct
871 GNUNET_assert (0); 868 GNUNET_assert (0);
872} 869}
873 870
871
874/** 872/**
875 * Handle an incoming message of type 873 * Handle an incoming message of type
876 * #GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_RESULT 874 * #GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_RESULT
@@ -925,7 +923,7 @@ handle_ticket_result (void *cls, const struct TicketResultMessage *msg)
925 if (NULL != op) 923 if (NULL != op)
926 { 924 {
927 if (0 < pres_len) 925 if (0 < pres_len)
928 pres = GNUNET_RECLAIM_presentation_list_deserialize ((char*)&msg[1], 926 pres = GNUNET_RECLAIM_presentation_list_deserialize ((char*) &msg[1],
929 pres_len); 927 pres_len);
930 GNUNET_CONTAINER_DLL_remove (handle->op_head, handle->op_tail, op); 928 GNUNET_CONTAINER_DLL_remove (handle->op_head, handle->op_tail, op);
931 if (0 == 929 if (0 ==
@@ -1485,7 +1483,7 @@ GNUNET_RECLAIM_get_credentials_start (
1485 */ 1483 */
1486void 1484void
1487GNUNET_RECLAIM_get_credentials_next (struct 1485GNUNET_RECLAIM_get_credentials_next (struct
1488 GNUNET_RECLAIM_CredentialIterator *ait) 1486 GNUNET_RECLAIM_CredentialIterator *ait)
1489{ 1487{
1490 struct GNUNET_RECLAIM_Handle *h = ait->h; 1488 struct GNUNET_RECLAIM_Handle *h = ait->h;
1491 struct CredentialIterationNextMessage *msg; 1489 struct CredentialIterationNextMessage *msg;
@@ -1507,7 +1505,7 @@ GNUNET_RECLAIM_get_credentials_next (struct
1507 */ 1505 */
1508void 1506void
1509GNUNET_RECLAIM_get_credentials_stop (struct 1507GNUNET_RECLAIM_get_credentials_stop (struct
1510 GNUNET_RECLAIM_CredentialIterator *ait) 1508 GNUNET_RECLAIM_CredentialIterator *ait)
1511{ 1509{
1512 struct GNUNET_RECLAIM_Handle *h = ait->h; 1510 struct GNUNET_RECLAIM_Handle *h = ait->h;
1513 struct GNUNET_MQ_Envelope *env; 1511 struct GNUNET_MQ_Envelope *env;