diff options
author | Jonathan Robie <jonathan@apache.org> | 2010-09-16 14:52:37 +0000 |
---|---|---|
committer | Jonathan Robie <jonathan@apache.org> | 2010-09-16 14:52:37 +0000 |
commit | a15b7ff7ba6e7ccd85bdd0042dd7ea65d6840e99 (patch) | |
tree | a5b1321053b4b2bb92023de1a78eb3fdb473f4ca /cpp/src/qpid/messaging/AddressParser.h | |
parent | 01fda72abf335c795df091ae6ea6a0b3a22ec72f (diff) | |
download | qpid-python-a15b7ff7ba6e7ccd85bdd0042dd7ea65d6840e99.tar.gz |
Fixes parsing problem with empty lists ('[]') in addresses, which previously raised an exception and leaked the memory associated with the AddressImpl.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@997771 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/AddressParser.h')
-rw-r--r-- | cpp/src/qpid/messaging/AddressParser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/messaging/AddressParser.h b/cpp/src/qpid/messaging/AddressParser.h index a3f41eb04d..1635331d19 100644 --- a/cpp/src/qpid/messaging/AddressParser.h +++ b/cpp/src/qpid/messaging/AddressParser.h @@ -46,6 +46,7 @@ class AddressParser bool readSimpleValue(qpid::types::Variant& word); bool readKey(std::string& key); bool readValue(qpid::types::Variant& value); + bool readValueIfExists(qpid::types::Variant& value); bool readKeyValuePair(qpid::types::Variant::Map& map); bool readMap(qpid::types::Variant& value); bool readList(qpid::types::Variant& value); |