From 467acd3d1b08610843fc172658a1c285c1b58030 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 22 Dec 2015 11:02:34 +0100 Subject: [PATCH] fix crash in linphone-android when receiving a SUBSCRIBE because LinphoneFriend::lc is not set. --- coreapi/presence.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/presence.c b/coreapi/presence.c index ea6744ef6..a22ef5984 100644 --- a/coreapi/presence.c +++ b/coreapi/presence.c @@ -1447,6 +1447,7 @@ void linphone_core_add_subscriber(LinphoneCore *lc, const char *subscriber, SalO char *tmp; if (fl==NULL) return ; + fl->lc = lc; linphone_friend_add_incoming_subscription(fl, op); linphone_friend_set_inc_subscribe_policy(fl,LinphoneSPAccept); fl->inc_subscribe_pending=TRUE;