fix crash when receiving invte from an unknown chatroom

This commit is contained in:
Jehan Monnier 2018-01-31 10:41:40 +01:00 committed by Ghislain MARY
parent 7ec3f703f5
commit 633f1bf8ea

View file

@ -113,8 +113,11 @@ static void call_received(SalCallOp *h) {
L_GET_PRIVATE(static_pointer_cast<ServerGroupChatRoom>(chatRoom))->confirmJoining(h);
linphone_address_unref(toAddr);
linphone_address_unref(fromAddr);
return;
} else {
//invite is for an unknown chatroom
h->decline(SalReasonNotFound, nullptr);
}
return;
} else {
// TODO: handle media conference joining if the "text" feature tag is not present
}