commit a02d9f298d4ccf03e51a00404abd193dcb9f11d9
parent c024d2357a996afbaa6f0efa7fa6b6675212065a
Author: Jacki <jacki@thejackimonster.de>
Date: Wed, 8 May 2024 00:30:14 +0200
Fix ticket consumption regarding changes in reclaim
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
3 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c
@@ -1033,7 +1033,7 @@ cb_iterate_ticket_check (void *cls,
new_tickets->op = GNUNET_RECLAIM_ticket_consume(
handle->reclaim,
ticket,
- //rp_uri,
+ rp_uri,
cb_consume_ticket_check,
new_tickets
);
@@ -1119,7 +1119,7 @@ cb_iterate_ticket (void *cls,
new_tickets->op = GNUNET_RECLAIM_ticket_consume(
handle->reclaim,
ticket,
- //rp_uri,
+ rp_uri,
cb_consume_ticket,
new_tickets
);
diff --git a/src/gnunet_chat_ticket.c b/src/gnunet_chat_ticket.c
@@ -93,7 +93,7 @@ ticket_consume(struct GNUNET_CHAT_Ticket *ticket,
ticket->op = GNUNET_RECLAIM_ticket_consume(
ticket->handle->reclaim,
&(ticket->ticket),
- //rp_uri,
+ rp_uri,
cb_ticket_consume_attribute,
ticket
);
diff --git a/tests/test_gnunet_chat_attribute.c b/tests/test_gnunet_chat_attribute.c
@@ -295,26 +295,23 @@ on_gnunet_chat_attribute_share_msg(void *cls,
ck_assert_ptr_null(context);
break;
case GNUNET_CHAT_KIND_SHARED_ATTRIBUTES:
- ck_assert_ptr_nonnull(context);
- ck_assert_ptr_nonnull(sender);
-
if (GNUNET_YES != GNUNET_CHAT_message_is_sent(message))
{
printf("exit?\n");
GNUNET_CHAT_disconnect(handle);
- break;
}
-
- printf("list attributes?\n");
-
- GNUNET_CHAT_get_shared_attributes(
- handle,
- GNUNET_CHAT_message_get_recipient(message),
- on_gnunet_chat_attribute_share_attr,
- handle
- );
-
+ else
+ {
+ printf("list attributes?\n");
+
+ GNUNET_CHAT_get_shared_attributes(
+ handle,
+ GNUNET_CHAT_message_get_recipient(message),
+ on_gnunet_chat_attribute_share_attr,
+ handle
+ );
+ }
break;
default:
ck_abort_msg("%d\n", GNUNET_CHAT_message_get_kind(message));