Commit 8cb4e168 authored by Youness Alaoui's avatar Youness Alaoui

Don't demux the stun packet twice

parent f752c30d
...@@ -1260,9 +1260,7 @@ _nice_agent_recv ( ...@@ -1260,9 +1260,7 @@ _nice_agent_recv (
} }
/* step: validate using the new STUN API */ /* step: validate using the new STUN API */
/* - note: old check '((buf[0] & 0xc0) == 0)' */ /* - note: old check '((buf[0] & 0xc0) == 0)' */
else if (stun_validate ((uint8_t*)buf, len) > 0 && else if (stun_validate ((uint8_t*)buf, len) > 0) {
stun_demux ((uint8_t*)buf))
{
/* If the retval is no 0, its not a valid stun packet, probably data */ /* If the retval is no 0, its not a valid stun packet, probably data */
conn_check_handle_inbound_stun (agent, stream, component, udp_socket, conn_check_handle_inbound_stun (agent, stream, component, udp_socket,
&from, buf, len); &from, buf, len);
......
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