summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/AMQFrame.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-05-01 15:28:12 +0000
committerGordon Sim <gsim@apache.org>2008-05-01 15:28:12 +0000
commit6c6529551ad6dd8b768067ed097d0a0bc742e6b0 (patch)
treecfba31b87d5b14d7345e9cdbac4530cd5a26c6bd /cpp/src/qpid/framing/AMQFrame.cpp
parent21add4795ac36d76a8b2f47e442c3250d7d9114c (diff)
downloadqpid-python-6c6529551ad6dd8b768067ed097d0a0bc742e6b0.tar.gz
QPID-989: fix decode of zero sized map
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@652558 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/AMQFrame.cpp')
-rw-r--r--cpp/src/qpid/framing/AMQFrame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/AMQFrame.cpp b/cpp/src/qpid/framing/AMQFrame.cpp
index d861251dba..c1fc647b52 100644
--- a/cpp/src/qpid/framing/AMQFrame.cpp
+++ b/cpp/src/qpid/framing/AMQFrame.cpp
@@ -78,7 +78,7 @@ bool AMQFrame::decode(Buffer& buffer)
uint8_t type = buffer.getOctet();
uint16_t frame_size = buffer.getShort();
if (frame_size < frameOverhead())
- throw FramingErrorException(QPID_MSG("Frame size too small"));
+ throw FramingErrorException(QPID_MSG("Frame size too small " << frame_size));
uint8_t reserved1 = buffer.getOctet();
uint8_t field1 = buffer.getOctet();
subchannel = field1 & 0x0f;