libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit cfe27d65f14f2e59d70144280db2d98972418ba2
parent d3c0e4d8474421204cc7bc8b2e2bb95f9e34cb3c
Author: Jacki <jacki@thejackimonster.de>
Date:   Tue, 30 Jan 2024 00:17:14 +0100

Fix segmentation fault

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
Msrc/gnunet_chat_handle.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c @@ -1026,6 +1026,9 @@ handle_update_tickets (struct GNUNET_CHAT_Handle *handle, { GNUNET_assert((handle) && (identity)); + if (!handle->reclaim) + return; + struct GNUNET_CHAT_TicketProcess *tickets = GNUNET_new( struct GNUNET_CHAT_TicketProcess ); @@ -1034,6 +1037,7 @@ handle_update_tickets (struct GNUNET_CHAT_Handle *handle, return; memset(tickets, 0, sizeof(struct GNUNET_CHAT_TicketProcess)); + tickets->handle = handle; GNUNET_memcpy( &(tickets->identity), identity,