Commit 3a90ff40 authored by Olivier Crête's avatar Olivier Crête

discovery: Remove never used and leaked msn_turn_* fields in CandidateDiscovery

parent 6b661b27
......@@ -76,8 +76,7 @@ void discovery_free_item (gpointer data, gpointer user_data)
{
CandidateDiscovery *cand = data;
g_assert (user_data == NULL);
g_free (cand->msn_turn_username);
g_free (cand->msn_turn_password);
g_slice_free (CandidateDiscovery, cand);
}
......@@ -888,10 +887,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
if (turn_compat == STUN_USAGE_TURN_COMPATIBILITY_MSN ||
turn_compat == STUN_USAGE_TURN_COMPATIBILITY_OC2007) {
g_free (cand->msn_turn_username);
g_free (cand->msn_turn_password);
cand->msn_turn_username = username;
cand->msn_turn_password = password;
g_free (username);
g_free (password);
}
}
......
......@@ -57,8 +57,6 @@ typedef struct
Component *component;
TurnServer *turn;
StunAgent stun_agent;
uint8_t *msn_turn_username;
uint8_t *msn_turn_password;
StunTimer timer;
uint8_t stun_buffer[STUN_MAX_MESSAGE_SIZE];
StunMessage stun_message;
......
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