From afd158d1c93d184f1cfea07b8b24c55920faf129 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/qpid@1615991 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/amqp_0_10/Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid') diff --git a/cpp/src/qpid/amqp_0_10/Connection.cpp b/cpp/src/qpid/amqp_0_10/Connection.cpp index 5ff73b2d4d..87085b6d77 100644 --- a/cpp/src/qpid/amqp_0_10/Connection.cpp +++ b/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