summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-10-09 16:21:18 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-10-09 16:26:08 -0400
commita7afd0017996d4b457a84b6cd342cee47cd3d81d (patch)
treead2759dd8c366832bc3bc89d59e406501b6dcedc /agent
parent25c14940aba000d1c5f88ec32b31b108163de3be (diff)
downloadlibnice-a7afd0017996d4b457a84b6cd342cee47cd3d81d.tar.gz
agent: Pass all packets that are not acceptable STUN packets to the application
We attempted to not pass through some packets that looked like valid STUN but were ot acceptable to us, but that dropped some application packets.
Diffstat (limited to 'agent')
-rw-r--r--agent/agent.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 91ea10b..886d5ec 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -3531,18 +3531,13 @@ agent_recv_message_unlocked (
if (handled) {
/* Handled STUN message. */
nice_debug ("%s: Valid STUN packet received.", G_STRFUNC);
- } else {
- /* Valid but unhandled STUN message (e.g. does not match a previously
- * sent request due to being a duplicate response). */
- nice_debug ("%s: Valid but unhandled STUN packet received.", G_STRFUNC);
+ retval = RECV_OOB;
+ g_free (big_buf);
+ goto done;
}
-
- retval = RECV_OOB;
- g_free (big_buf);
- goto done;
}
- nice_debug ("%s: WARNING: Packet passed fast STUN validation but failed "
+ nice_debug ("%s: Packet passed fast STUN validation but failed "
"slow validation.", G_STRFUNC);
g_free (big_buf);