Commit bcc4c172 authored by Guillaume Roguez's avatar Guillaume Roguez

ringdht: fix segfault due to nullptr access

remove a nullptr access when a call is cancelled during
the ICE initialization of an outgoing call.

Change-Id: I5dc27077b7054ba8c9c0716a4d05013f6a84530c
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent ac44cbaa
......@@ -195,11 +195,8 @@ RingAccount::newOutgoingCall(const std::string& toUrl)
std::weak_ptr<SIPCall> weak_call = call;
manager.addTask([shared_this, weak_call, toUri] {
auto call = weak_call.lock();
if (not call) {
call->onFailure();
if (not call)
return false;
}
// Create an ICE transport for SIP channel
std::shared_ptr<IceTransport> ice {};
......
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