Commit d2254766 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête
Browse files

agent: discard sockptr on updated remote candidates

These candidates type is updated from peer-reflexive, discovered during
early incoming checks, to the type of the matching regularly transmitted
candidate, so the previous sockptr value is no longer of interest here.
The same socket is already associated to the initial local candidate
anyway, source of the early discovery.
parent 6303ed6f
......@@ -3455,6 +3455,10 @@ static gboolean priv_add_remote_candidate (
nice_debug ("Agent %p : Updating existing peer-rfx remote candidate to %s",
agent, _cand_type_to_sdp (type));
candidate->type = type;
/* The updated candidate is no more peer reflexive, so its
* sockptr can be cleared
candidate->sockptr = NULL;
/* If it got there, the next one will also be ran, so the foundation
* will be set.
Supports Markdown
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