mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-11-12 05:29:52 +01:00
Fix user property encoding
Summary: related to T11798 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27532
This commit is contained in:
@@ -390,6 +390,10 @@ bool parse_to_prop(
|
||||
|
||||
if constexpr (async_mqtt5::is_vector<prop_type>) {
|
||||
std::string value;
|
||||
// key
|
||||
rv = basic::utf8_.parse(iter, last, ctx, rctx, value);
|
||||
if (rv) prop.push_back(std::move(value));
|
||||
// value
|
||||
rv = basic::utf8_.parse(iter, last, ctx, rctx, value);
|
||||
if (rv) prop.push_back(std::move(value));
|
||||
}
|
||||
@@ -439,7 +443,7 @@ public:
|
||||
|
||||
// either rv = false or property with prop_id was not found
|
||||
if (!rv || iter == saved)
|
||||
break;
|
||||
return false;
|
||||
}
|
||||
|
||||
first = iter;
|
||||
|
||||
Reference in New Issue
Block a user