diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-01-18 15:15:54 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-01-18 15:15:54 +0000 |
| commit | 0b72b324a061e351e1c42b90db65af02a44a1da1 (patch) | |
| tree | 8e02722c190538739d9cce7ceb5bc42fb553ca3e /src/QXmppStun.cpp | |
| parent | 7848dae93913772c0f687fd8a95716e52c3b7fdb (diff) | |
| download | qxmpp-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.cpp | 4 |
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; } |
