From 17dc8fe1a9ef5ef2ec3f5905f7be397c346c3cde Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 5 Aug 2014 19:50:47 +0000 Subject: QPID-5963: fix from Chris Richardson to prevent broker incorrecctly thinking it has decoded protocol header when it has not git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1615991 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/amqp_0_10/Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/amqp_0_10/Connection.cpp b/qpid/cpp/src/qpid/amqp_0_10/Connection.cpp index 5ff73b2d4d..87085b6d77 100644 --- a/qpid/cpp/src/qpid/amqp_0_10/Connection.cpp +++ b/qpid/cpp/src/qpid/amqp_0_10/Connection.cpp @@ -50,8 +50,8 @@ size_t Connection::decode(const char* buffer, size_t size) { throw Exception(QPID_MSG("Unsupported version: " << pi << " supported version " << version)); QPID_LOG(trace, "RECV [" << identifier << "]: INIT(" << pi << ")"); + initialized = true; } - initialized = true; } framing::AMQFrame frame; while(frame.decode(in)) { -- cgit v1.2.1