Commit e620b432 authored by jehan's avatar jehan
Browse files

avoid invalid read if CallSessionPrivate is deleted within call to...

avoid invalid read if CallSessionPrivate is deleted within call to L_GET_PRIVATE(session)->failure();
parent 261b0f19
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment