Commit 05ba2746 authored by Youness Alaoui's avatar Youness Alaoui

Fix a crash in case a relay candidate could not be added (because of an error...

Fix a crash in case a relay candidate could not be added (because of an error or because it's a redundant candidate), do not try to refresh it
parent 9fbe724b
......@@ -2364,8 +2364,9 @@ static gboolean priv_map_reply_to_relay_request (NiceAgent *agent, StunMessage *
d->nicesock,
d->turn);
priv_add_new_turn_refresh (d, relay_cand, lifetime);
if (relay_cand) {
priv_add_new_turn_refresh (d, relay_cand, lifetime);
}
d->stun_message.buffer = NULL;
d->stun_message.buffer_len = 0;
......
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