From d5fb55e9481ecb4ebba4dbd3c1cb4aca82eb43f7 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 21 Nov 2012 19:31:08 +0000 Subject: QPID-4448: fix credit checking on 0-10 path when message is of 1.0 format git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1412239 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Protocol.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src/qpid/broker/Protocol.cpp') diff --git a/cpp/src/qpid/broker/Protocol.cpp b/cpp/src/qpid/broker/Protocol.cpp index 90d4d7833f..e236698142 100644 --- a/cpp/src/qpid/broker/Protocol.cpp +++ b/cpp/src/qpid/broker/Protocol.cpp @@ -42,6 +42,7 @@ boost::intrusive_ptr ProtocolReg for (Protocols::const_iterator i = protocols.begin(); !transfer && i != protocols.end(); ++i) { transfer = i->second->translate(m); } + if (!transfer) throw new Exception("Could not convert message into 0-10"); return transfer; } boost::shared_ptr ProtocolRegistry::recover(qpid::framing::Buffer& b) -- cgit v1.2.1