summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2015-07-14 08:23:43 +0000
committerGordon Sim <gsim@apache.org>2015-07-14 08:23:43 +0000
commit5242a7518c87873b8adf60ff12df5fdcf9feda89 (patch)
treedc8e2ce68350c3a8aabe7d879ad24c0c074a7598
parent22807e3577a1e782448c83ba572ea2621a5d06e4 (diff)
downloadqpid-python-5242a7518c87873b8adf60ff12df5fdcf9feda89.tar.gz
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
-rw-r--r--qpid/cpp/src/qpid/broker/amqp/Sasl.cpp2
1 files changed, 1 insertions, 1 deletions
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) {