From 4b1cfa3ddf9fd89d7f773cc65f2bd39f06447135 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Wed, 10 Feb 2016 18:13:38 +0100 Subject: [PATCH] make sure even linphone friends created with legacy constructor do not lead to a crash if used in friend-list --- coreapi/friendlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index aba3546ff..611f144a0 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -319,6 +319,7 @@ LinphoneFriendListStatus linphone_friend_list_add_friend(LinphoneFriendList *lis if (tmp) ms_free(tmp); } else { friend->in_list = TRUE; + friend->lc = list->lc; /*In case not set yet*/ list->friends = ms_list_append(list->friends, linphone_friend_ref(friend)); } return LinphoneFriendListOK;