Commit 6b661b27 authored by Olivier Crête's avatar Olivier Crête

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

parent 100a31fc
...@@ -818,10 +818,8 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand) ...@@ -818,10 +818,8 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand)
if (turn_compat == STUN_USAGE_TURN_COMPATIBILITY_MSN || if (turn_compat == STUN_USAGE_TURN_COMPATIBILITY_MSN ||
turn_compat == STUN_USAGE_TURN_COMPATIBILITY_OC2007) { turn_compat == STUN_USAGE_TURN_COMPATIBILITY_OC2007) {
g_free (cand->msn_turn_username); g_free (username);
g_free (cand->msn_turn_password); g_free (password);
cand->msn_turn_username = username;
cand->msn_turn_password = password;
} }
nice_debug ("Agent %p : Sending allocate Refresh %zd", cand->agent, nice_debug ("Agent %p : Sending allocate Refresh %zd", cand->agent,
......
...@@ -77,8 +77,6 @@ typedef struct ...@@ -77,8 +77,6 @@ typedef struct
StunAgent stun_agent; StunAgent stun_agent;
GSource *timer_source; GSource *timer_source;
GSource *tick_source; GSource *tick_source;
uint8_t *msn_turn_username;
uint8_t *msn_turn_password;
StunTimer timer; StunTimer timer;
uint8_t stun_buffer[STUN_MAX_MESSAGE_SIZE]; uint8_t stun_buffer[STUN_MAX_MESSAGE_SIZE];
StunMessage stun_message; 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