From: ishmal Date: Mon, 12 Mar 2007 21:14:51 +0000 (+0000) Subject: Allow server to skip final "rspauth" SASL handshake X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b517ef4d3f4332a0c6f48a299d66d59370df0586;p=inkscape.git Allow server to skip final "rspauth" SASL handshake --- 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;