Commit d6e8102e authored by Guillaume Roguez's avatar Guillaume Roguez

ice: fix crash if no remote candidates at negotiation

Refs #64235

Change-Id: I0acd8c39db6f6255e8b32254ce861fb2f81d6cfe
parent dab31d9b
......@@ -234,6 +234,12 @@ bool
IceTransport::start(const Attribute& rem_attrs,
const std::vector<IceCandidate>& rem_candidates)
// pj_ice_strans_start_ice crashes if remote candidates array is empty
if (rem_candidates.empty()) {
RING_ERR("ICE start failed: no remote candidates");
return false;
pj_str_t ufrag, pwd;
RING_DBG("ICE negotiation starting (%u remote candidates)", rem_candidates.size());
auto status = pj_ice_strans_start_ice(icest_.get(),
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