diff options
Diffstat (limited to 'src/reclaim/reclaim_api.c')
-rw-r--r-- | src/reclaim/reclaim_api.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c index c08cc868c..f41473f9f 100644 --- a/src/reclaim/reclaim_api.c +++ b/src/reclaim/reclaim_api.c | |||
@@ -907,7 +907,7 @@ handle_ticket_result (void *cls, const struct TicketResultMessage *msg) | |||
907 | struct GNUNET_RECLAIM_Handle *handle = cls; | 907 | struct GNUNET_RECLAIM_Handle *handle = cls; |
908 | struct GNUNET_RECLAIM_Operation *op; | 908 | struct GNUNET_RECLAIM_Operation *op; |
909 | struct GNUNET_RECLAIM_TicketIterator *it; | 909 | struct GNUNET_RECLAIM_TicketIterator *it; |
910 | struct GNUNET_RECLAIM_PresentationList *pres; | 910 | struct GNUNET_RECLAIM_PresentationList *presentation; |
911 | uint32_t r_id = ntohl (msg->id); | 911 | uint32_t r_id = ntohl (msg->id); |
912 | static const struct GNUNET_RECLAIM_Ticket ticket; | 912 | static const struct GNUNET_RECLAIM_Ticket ticket; |
913 | uint32_t pres_len = ntohs (msg->presentations_len); | 913 | uint32_t pres_len = ntohs (msg->presentations_len); |
@@ -923,8 +923,9 @@ handle_ticket_result (void *cls, const struct TicketResultMessage *msg) | |||
923 | if (NULL != op) | 923 | if (NULL != op) |
924 | { | 924 | { |
925 | if (0 < pres_len) | 925 | if (0 < pres_len) |
926 | pres = GNUNET_RECLAIM_presentation_list_deserialize ((char*) &msg[1], | 926 | presentation = GNUNET_RECLAIM_presentation_list_deserialize ( |
927 | pres_len); | 927 | (char*) &msg[1], |
928 | pres_len); | ||
928 | GNUNET_CONTAINER_DLL_remove (handle->op_head, handle->op_tail, op); | 929 | GNUNET_CONTAINER_DLL_remove (handle->op_head, handle->op_tail, op); |
929 | if (0 == | 930 | if (0 == |
930 | memcmp (&msg->ticket, &ticket, sizeof(struct GNUNET_RECLAIM_Ticket))) | 931 | memcmp (&msg->ticket, &ticket, sizeof(struct GNUNET_RECLAIM_Ticket))) |
@@ -937,10 +938,10 @@ handle_ticket_result (void *cls, const struct TicketResultMessage *msg) | |||
937 | if (NULL != op->ti_cb) | 938 | if (NULL != op->ti_cb) |
938 | op->ti_cb (op->cls, | 939 | op->ti_cb (op->cls, |
939 | &msg->ticket, | 940 | &msg->ticket, |
940 | (0 < pres_len) ? pres : NULL); | 941 | (0 < pres_len) ? presentation : NULL); |
941 | } | 942 | } |
942 | if (0 < pres_len) | 943 | if (0 < pres_len) |
943 | GNUNET_RECLAIM_presentation_list_destroy (pres); | 944 | GNUNET_RECLAIM_presentation_list_destroy (presentation); |
944 | free_op (op); | 945 | free_op (op); |
945 | return; | 946 | return; |
946 | } | 947 | } |