mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
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 <andreas.traczyk@savoirfairelinux.com>
This commit is contained in:
@ -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 {};
|
||||
|
Reference in New Issue
Block a user