qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1640826 - /qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
Date Thu, 20 Nov 2014 21:50:24 GMT
Author: gsim
Date: Thu Nov 20 21:50:23 2014
New Revision: 1640826

URL: http://svn.apache.org/r1640826
Log:
QPID-4710: fix decoding of transtional outcome

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

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp?rev=1640826&r1=1640825&r2=1640826&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp Thu Nov 20 21:50:23 2014
@@ -752,7 +752,9 @@ std::pair<TxBuffer*,uint64_t> Session::g
                 if (!result.first) {
                     QPID_LOG(error, "Transaction not found for id: " << id);
                 }
-                if (count > 1 && pn_data_next(data)) {
+                if (count > 1 && pn_data_next(data) && pn_data_is_described(data))
{
+                    pn_data_enter(data);
+                    pn_data_next(data);
                     result.second = pn_data_get_ulong(data);
                 }
                 pn_data_exit(data);



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


Mime
View raw message