Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libnice
libnice
Commits
99595a96
Commit
99595a96
authored
Jan 18, 2011
by
Youness Alaoui
Browse files
Do not gather candidates if we can't listen to the host interface
parent
5619d893
Changes
1
Hide whitespace changes
Inline
Side-by-side
agent/agent.c
View file @
99595a96
...
...
@@ -1705,6 +1705,7 @@ nice_agent_gather_candidates (
GSList
*
i
;
Stream
*
stream
;
GSList
*
local_addresses
=
NULL
;
gboolean
ret
=
TRUE
;
agent_lock
();
...
...
@@ -1795,7 +1796,7 @@ nice_agent_gather_candidates (
nice_address_to_string
(
addr
,
ip
);
nice_debug
(
"Agent %p: Unable to add local host candidate %s for s%d:%d"
". Invalid interface?"
,
agent
,
ip
,
stream
->
id
,
component
->
id
);
continue
;
goto
error
;
}
#ifdef HAVE_GUPNP
...
...
@@ -1853,13 +1854,14 @@ nice_agent_gather_candidates (
discovery_schedule
(
agent
);
}
error:
for
(
i
=
local_addresses
;
i
;
i
=
i
->
next
)
nice_address_free
(
i
->
data
);
g_slist_free
(
local_addresses
);
agent_unlock
();
return
TRUE
;
return
ret
;
}
static
void
priv_free_upnp
(
NiceAgent
*
agent
)
...
...
Write
Preview
Supports
Markdown
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