Commit d3147896 authored by Olivier Crête's avatar Olivier Crête Committed by Youness Alaoui

Refuse invalid relay informations

parent a8934fa2
......@@ -1041,6 +1041,12 @@ nice_agent_set_relay_info(NiceAgent *agent,
Component *component = NULL;
g_return_val_if_fail (server_ip, FALSE);
g_return_val_if_fail (server_port, FALSE);
g_return_val_if_fail (username, FALSE);
g_return_val_if_fail (password, FALSE);
g_return_val_if_fail (type <= NICE_PROXY_TYPE_LAST, FALSE);
g_static_rec_mutex_lock (&agent->mutex);
if (agent_find_component (agent, stream_id, component_id, NULL, &component)) {
......
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