From 5242a7518c87873b8adf60ff12df5fdcf9feda89 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 14 Jul 2015 08:23:43 +0000 Subject: QPID-6639: delegate input as soon as authentication has succeeded (even if that has not yet been communicated to peer) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1690874 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/amqp/Sasl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp b/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp index 907e04f5ed..3163e6a97a 100644 --- a/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp +++ b/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp @@ -44,7 +44,7 @@ Sasl::~Sasl() {} size_t Sasl::decode(const char* buffer, size_t size) { - if (state == AUTHENTICATED) { + if (state == AUTHENTICATED || state == SUCCESS_PENDING) { if (securityLayer.get()) return securityLayer->decode(buffer, size); else return connection.decode(buffer, size); } else if (state == INCOMPLETE && size) { -- cgit v1.2.1