Commit 4e20eb31 authored by Youness Alaoui's avatar Youness Alaoui

gtalk allocate response doesn't have the username field

parent 98b6e463
...@@ -1952,6 +1952,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, ...@@ -1952,6 +1952,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
NiceCandidate *remote_candidate = NULL; NiceCandidate *remote_candidate = NULL;
NiceCandidate *remote_candidate2 = NULL; NiceCandidate *remote_candidate2 = NULL;
NiceCandidate *local_candidate = NULL; NiceCandidate *local_candidate = NULL;
gboolean turn_msg = FALSE;
nice_address_copy_to_sockaddr (from, &sockaddr); nice_address_copy_to_sockaddr (from, &sockaddr);
...@@ -1982,6 +1983,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, ...@@ -1982,6 +1983,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
d->nicesock == udp_socket) { d->nicesock == udp_socket) {
valid = stun_agent_validate (&d->turn_agent, &req, valid = stun_agent_validate (&d->turn_agent, &req,
(uint8_t *) buf, len, conncheck_stun_validater, &validater_data); (uint8_t *) buf, len, conncheck_stun_validater, &validater_data);
turn_msg = TRUE;
break; break;
} }
} }
...@@ -2076,7 +2078,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, ...@@ -2076,7 +2078,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
} }
if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE && if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE &&
local_candidate == NULL) { local_candidate == NULL &&
turn_msg == FALSE) {
/* if we couldn't match the username and the stun agent has /* if we couldn't match the username and the stun agent has
IGNORE_CREDENTIALS then we have an integrity check failing */ IGNORE_CREDENTIALS then we have an integrity check failing */
nice_debug ("Agent %p : Username check failed.", agent); nice_debug ("Agent %p : Username check failed.", agent);
......
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