Skip to content
Snippets Groups Projects
Commit bcc4c172 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

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: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent ac44cbaa
No related branches found
No related tags found
No related merge requests found
......@@ -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 {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment