commit e4ef5f41ace530d61963fad78d40664e2c5e199c
parent e3f5660405064de9114153f2326befc83ab93fc0
Author: Jacki <jacki@thejackimonster.de>
Date: Wed, 6 Mar 2024 08:53:43 +0100
Fix tagging issue with invitations
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
@@ -2395,7 +2395,13 @@ GNUNET_CHAT_invitation_is_rejected (const struct GNUNET_CHAT_Invitation *invitat
const struct GNUNET_CHAT_Tagging *tagging = GNUNET_CONTAINER_multihashmap_get(
invitation->context->taggings, &(invitation->hash));
- return tagging_iterate(tagging, GNUNET_NO, NULL, NULL, NULL) > 0;
+ if (!tagging)
+ return GNUNET_NO;
+
+ if (tagging_iterate(tagging, GNUNET_NO, NULL, NULL, NULL) > 0)
+ return GNUNET_YES;
+ else
+ return GNUNET_NO;
}