fix crash in linphone-android when receiving a SUBSCRIBE because LinphoneFriend::lc is not set.

This commit is contained in:
Simon Morlat 2015-12-22 11:02:34 +01:00
parent d18a67deff
commit 467acd3d1b

View file

@ -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;