summaryrefslogtreecommitdiff
path: root/stun
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2011-08-23 19:19:09 -0400
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-08-29 22:08:55 -0400
commit14f7accdf821c7b5fcee335cc0719a5dfc46f1ac (patch)
tree9a10785af3c6b1ba24737a7fbd52e9ad3d38a763 /stun
parentc266ec7eac8730031e3297d144ada9654274fe47 (diff)
Google puts the STUN cookie, but doesn't follow RFC 5389
Google puts the stun cookie, but it doesn'T follow RFC 5389 at all, so ignore the STUN cookie in Google mode.
Diffstat (limited to 'stun')
-rw-r--r--stun/usages/ice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stun/usages/ice.c b/stun/usages/ice.c
index 5506cf4..909bbaa 100644
--- a/stun/usages/ice.c
+++ b/stun/usages/ice.c
@@ -293,7 +293,8 @@ stun_usage_ice_conncheck_create_reply (StunAgent *agent, StunMessage *req,
val = stun_message_append_xor_addr_full (msg, STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS,
src, srclen, htonl (magic_cookie));
- } else if (stun_message_has_cookie (msg)) {
+ } else if (stun_message_has_cookie (msg) &&
+ compatibility != STUN_USAGE_ICE_COMPATIBILITY_GOOGLE) {
val = stun_message_append_xor_addr (msg, STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS,
src, srclen);
} else {