diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index 0b19db416e8698604340e3c75205339046617011..b2920157d34525b458d927d5817f989960d9a218 100644 --- a/src/jamidht/jamiaccount.cpp +++ b/src/jamidht/jamiaccount.cpp @@ -4795,6 +4795,10 @@ JamiAccount::cacheSIPConnection(std::shared_ptr<ChannelSocket>&& socket, shared->callConnectionClosed(key.second, false); }; auto sip_tr = link_.sipTransportBroker->getChanneledTransport(socket, std::move(onShutdown)); + if (!sip_tr) { + JAMI_ERR() << "No channeled transport found"; + return; + } sip_tr->setAccount(shared()); // Store the connection connections.emplace_back(SipConnection {sip_tr, socket});