aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppStun.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-01-18 15:15:54 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-01-18 15:15:54 +0000
commit0b72b324a061e351e1c42b90db65af02a44a1da1 (patch)
tree8e02722c190538739d9cce7ceb5bc42fb553ca3e /src/QXmppStun.cpp
parent7848dae93913772c0f687fd8a95716e52c3b7fdb (diff)
downloadqxmpp-0b72b324a061e351e1c42b90db65af02a44a1da1.tar.gz
STUN: when comparing a reflexive candidate to known candidates, check the type matches
Diffstat (limited to 'src/QXmppStun.cpp')
-rw-r--r--src/QXmppStun.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/QXmppStun.cpp b/src/QXmppStun.cpp
index 2df5b705..378b699e 100644
--- a/src/QXmppStun.cpp
+++ b/src/QXmppStun.cpp
@@ -1141,7 +1141,9 @@ void QXmppIceComponent::readyRead()
// check whether this candidates is already known
foreach (const QXmppJingleCandidate &candidate, m_localCandidates)
{
- if (candidate.host() == reflexiveHost && candidate.port() == reflexivePort)
+ if (candidate.host() == reflexiveHost &&
+ candidate.port() == reflexivePort &&
+ candidate.type() == QXmppJingleCandidate::ServerReflexiveType)
return;
}