diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-04 11:49:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-04 11:49:18 +0000 |
commit | a22160c2a65a14446128b07a4735ae3d13489ed2 (patch) | |
tree | 43178b7cab00b6375687da12ee2e96b6bed82594 /src/conversation/conversation_api.c | |
parent | 3ce16c6abb0644398c18387b03aba54fe996ecf0 (diff) | |
download | gnunet-a22160c2a65a14446128b07a4735ae3d13489ed2.tar.gz gnunet-a22160c2a65a14446128b07a4735ae3d13489ed2.zip |
-initialize cid in hangup message
Diffstat (limited to 'src/conversation/conversation_api.c')
-rw-r--r-- | src/conversation/conversation_api.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
795 | GNUNET_CONTAINER_DLL_remove (phone->caller_head, | 795 | GNUNET_CONTAINER_DLL_remove (phone->caller_head, |
796 | phone->caller_tail, | 796 | phone->caller_tail, |
797 | caller); | 797 | caller); |
798 | GNUNET_free_non_null (caller->caller_id_str); | ||
799 | GNUNET_free (caller); | ||
800 | e = GNUNET_MQ_msg (hang, | 798 | e = GNUNET_MQ_msg (hang, |
801 | GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); | 799 | GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); |
800 | hang->cid = caller->cid; | ||
802 | GNUNET_MQ_send (phone->mq, e); | 801 | GNUNET_MQ_send (phone->mq, e); |
802 | GNUNET_free_non_null (caller->caller_id_str); | ||
803 | GNUNET_free (caller); | ||
803 | } | 804 | } |
804 | 805 | ||
805 | 806 | ||