qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1690874 - /qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp
Date Tue, 14 Jul 2015 08:23:43 GMT
Author: gsim
Date: Tue Jul 14 08:23:43 2015
New Revision: 1690874

URL: http://svn.apache.org/r1690874
Log:
QPID-6639: delegate input as soon as authentication has succeeded (even if that has not yet
been communicated to peer)

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp?rev=1690874&r1=1690873&r2=1690874&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Sasl.cpp Tue Jul 14 08:23:43 2015
@@ -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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message