From 0b72b324a061e351e1c42b90db65af02a44a1da1 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 18 Jan 2011 15:15:54 +0000 Subject: STUN: when comparing a reflexive candidate to known candidates, check the type matches --- src/QXmppStun.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/QXmppStun.cpp') 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; } -- cgit v1.2.3