From a22160c2a65a14446128b07a4735ae3d13489ed2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 4 Jun 2014 11:49:18 +0000 Subject: -initialize cid in hangup message --- src/conversation/conversation_api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/conversation') diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c index a9efb7495..4e9901c81 100644 --- a/src/conversation/conversation_api.c +++ b/src/conversation/conversation_api.c @@ -795,11 +795,12 @@ GNUNET_CONVERSATION_caller_hang_up (struct GNUNET_CONVERSATION_Caller *caller) GNUNET_CONTAINER_DLL_remove (phone->caller_head, phone->caller_tail, caller); - GNUNET_free_non_null (caller->caller_id_str); - GNUNET_free (caller); e = GNUNET_MQ_msg (hang, GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); + hang->cid = caller->cid; GNUNET_MQ_send (phone->mq, e); + GNUNET_free_non_null (caller->caller_id_str); + GNUNET_free (caller); } -- cgit v1.2.3