aboutsummaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/QXmppSasl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/QXmppSasl.cpp b/src/base/QXmppSasl.cpp
index d37644ca..a39194ec 100644
--- a/src/base/QXmppSasl.cpp
+++ b/src/base/QXmppSasl.cpp
@@ -642,6 +642,11 @@ QString QXmppSaslServerPlain::mechanism() const
QXmppSaslServer::Response QXmppSaslServerPlain::respond(const QByteArray &request, QByteArray &response)
{
if (m_step == 0) {
+ if (request.isEmpty()) {
+ response = QByteArray();
+ return Challenge;
+ }
+
QList<QByteArray> auth = request.split('\0');
if (auth.size() != 3) {
warning("QXmppSaslServerPlain : Invalid input");