You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/11/20 22:50:24 UTC

svn commit: r1640826 - /qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Session.cpp

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