diff options
| author | Gordon Sim <gsim@apache.org> | 2012-11-21 19:31:08 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2012-11-21 19:31:08 +0000 |
| commit | d5fb55e9481ecb4ebba4dbd3c1cb4aca82eb43f7 (patch) | |
| tree | e49626a4d9b7f2e48621e61958652085dc38cc47 /cpp/src/qpid/broker/Protocol.cpp | |
| parent | bda496e9fdf90f0d3789c7ab80343784f9caf1c9 (diff) | |
| download | qpid-python-d5fb55e9481ecb4ebba4dbd3c1cb4aca82eb43f7.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/broker/Protocol.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Protocol.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<const qpid::broker::amqp_0_10::MessageTransfer> 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<RecoverableMessage> ProtocolRegistry::recover(qpid::framing::Buffer& b) |
