Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
3a90ff40
Commit
3a90ff40
authored
Apr 22, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discovery: Remove never used and leaked msn_turn_* fields in CandidateDiscovery
parent
6b661b27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
agent/discovery.c
agent/discovery.c
+3
-6
agent/discovery.h
agent/discovery.h
+0
-2
No files found.
agent/discovery.c
View file @
3a90ff40
...
@@ -76,8 +76,7 @@ void discovery_free_item (gpointer data, gpointer user_data)
...
@@ -76,8 +76,7 @@ void discovery_free_item (gpointer data, gpointer user_data)
{
{
CandidateDiscovery
*
cand
=
data
;
CandidateDiscovery
*
cand
=
data
;
g_assert
(
user_data
==
NULL
);
g_assert
(
user_data
==
NULL
);
g_free
(
cand
->
msn_turn_username
);
g_free
(
cand
->
msn_turn_password
);
g_slice_free
(
CandidateDiscovery
,
cand
);
g_slice_free
(
CandidateDiscovery
,
cand
);
}
}
...
@@ -888,10 +887,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
...
@@ -888,10 +887,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
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
;
}
}
}
}
...
...
agent/discovery.h
View file @
3a90ff40
...
@@ -57,8 +57,6 @@ typedef struct
...
@@ -57,8 +57,6 @@ typedef struct
Component
*
component
;
Component
*
component
;
TurnServer
*
turn
;
TurnServer
*
turn
;
StunAgent
stun_agent
;
StunAgent
stun_agent
;
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment