mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Tighten up some serialization checks
This commit is contained in:
@@ -705,7 +705,7 @@ bool STParsedJSON::parse (std::string const& json_name,
|
||||
"[" << i << "]." << objectName;
|
||||
bool const success (parse (ss.str (), objectFields,
|
||||
nameField, depth + 1, sub_object_));
|
||||
if (! success)
|
||||
if (! success || (sub_object_->getFName().fieldType != STI_OBJECT))
|
||||
return false;
|
||||
}
|
||||
tail->push_back (*sub_object_);
|
||||
|
||||
Reference in New Issue
Block a user