From 9d04b7c3981d1e0d25655dcb047c876dd5b275f6 Mon Sep 17 00:00:00 2001 From: Jacki Date: Sat, 10 Feb 2024 05:55:30 +0100 Subject: Fix rejections of invitations Signed-off-by: Jacki --- src/gnunet_chat_context.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gnunet_chat_context.c') diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index 128fe8b..d7073ed 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c @@ -48,6 +48,8 @@ init_new_context (struct GNUNET_CHAT_Context *context, initial_map_size, GNUNET_NO); context->messages = GNUNET_CONTAINER_multihashmap_create( initial_map_size, GNUNET_NO); + context->rejections = GNUNET_CONTAINER_multihashmap_create( + initial_map_size, GNUNET_NO); context->invites = GNUNET_CONTAINER_multihashmap_create( initial_map_size, GNUNET_NO); context->files = GNUNET_CONTAINER_multihashmap_create( @@ -107,6 +109,7 @@ context_destroy (struct GNUNET_CHAT_Context *context) (context->timestamps) && (context->dependencies) && (context->messages) && + (context->rejections) && (context->invites) && (context->files) ); @@ -123,6 +126,10 @@ context_destroy (struct GNUNET_CHAT_Context *context) context->messages, it_destroy_context_messages, NULL ); + GNUNET_CONTAINER_multihashmap_iterate( + context->rejections, it_destroy_context_rejections, NULL + ); + GNUNET_CONTAINER_multihashmap_iterate( context->invites, it_destroy_context_invites, NULL ); @@ -132,6 +139,7 @@ context_destroy (struct GNUNET_CHAT_Context *context) GNUNET_CONTAINER_multishortmap_destroy(context->timestamps); GNUNET_CONTAINER_multihashmap_destroy(context->dependencies); GNUNET_CONTAINER_multihashmap_destroy(context->messages); + GNUNET_CONTAINER_multihashmap_destroy(context->rejections); GNUNET_CONTAINER_multihashmap_destroy(context->invites); GNUNET_CONTAINER_multihashmap_destroy(context->files); -- cgit v1.2.3