mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
avoid invalid read if CallSessionPrivate is deleted within call to L_GET_PRIVATE(session)->failure();
This commit is contained in:
parent
261b0f195a
commit
e620b432b2
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ static void call_terminated(SalOp *op, const char *from) {
|
|||
}
|
||||
|
||||
static void call_failure(SalOp *op) {
|
||||
LinphonePrivate::CallSession *session = reinterpret_cast<LinphonePrivate::CallSession *>(op->get_user_pointer());
|
||||
std::shared_ptr<LinphonePrivate::CallSession> session = reinterpret_cast<LinphonePrivate::CallSession *>(op->get_user_pointer())->getSharedFromThis();
|
||||
if (!session) {
|
||||
ms_warning("Failure reported on already terminated CallSession");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue