From b517ef4d3f4332a0c6f48a299d66d59370df0586 Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 12 Mar 2007 21:14:51 +0000 Subject: [PATCH] Allow server to skip final "rspauth" SASL handshake --- src/pedro/pedroxmpp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pedro/pedroxmpp.cpp b/src/pedro/pedroxmpp.cpp index 408288187..2dc20deba 100644 --- a/src/pedro/pedroxmpp.cpp +++ b/src/pedro/pedroxmpp.cpp @@ -1726,6 +1726,13 @@ bool XmppClient::saslMd5Authenticate() status("server says:: '%s'", recbuf.c_str()); elem = parser.parse(recbuf); //elem->print(); + //# Early success? + if (elem->findElements("success").size() > 0) + { + delete elem; + return true; + } + //# Continue for one more SASL cycle b64challenge = elem->getTagValue("challenge"); delete elem; -- 2.30.2