From 93b7c60780ccce1a52462fb6f8ba07e8f78e8f79 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 25 Feb 2010 12:54:57 +0000 Subject: don't reply with an error to error IQs, leads to infinite loops --- source/QXmppStream.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp index 091a0feb..91b4c1cc 100644 --- a/source/QXmppStream.cpp +++ b/source/QXmppStream.cpp @@ -677,9 +677,11 @@ void QXmppStream::parser(const QByteArray& data) iq.setFrom(to); sendPacket(iq); } - else // didn't understant the iq...reply with error + else { - if(type != "result") // but not incase of result iqs + // if we didn't understant the iq, reply with error + // except for "result" and "error" iqs + if (type != "result" && type != "error") { QXmppIq iq(QXmppIq::Error); iq.setId(id); -- cgit v1.2.3