Commit 90ca2f04 authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez

call: fix null pointer reference

This patch fixes possible nullptr access to Call::iceTransport_ member.

Refs #64309

Change-Id: Idb93195c57e3fe7a952d4eb3cf864437465f2e91
parent dc8dff86
......@@ -326,13 +326,13 @@ Call::waitForIceNegotiation(unsigned timeout)
bool
Call::isIceUsed() const
{
return iceTransport_->isInitialized();
return iceTransport_ and iceTransport_->isInitialized();
}
bool
Call::isIceRunning() const
{
return iceTransport_->isRunning();
return iceTransport_ and iceTransport_->isRunning();
}
IceSocket*
......
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