aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/serialization
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-12-10 13:08:23 +0200
committerRiccardo Spagni <ric@spagni.net>2017-12-10 13:08:23 +0200
commitf51bac990e11a8f2f232449b1035e0152c316d82 (patch)
treeb6beba24b3b3db4bd4414d297ada48f340e67c6f /contrib/epee/include/serialization
parentMerge pull request #2900 (diff)
parentnet_utils_base: fix peer list parsing (diff)
downloadmonero-f51bac990e11a8f2f232449b1035e0152c316d82.tar.xz
Merge pull request #2906
27aa8ce9 net_utils_base: fix peer list parsing (moneromooo-monero) fe5ab2c4 epee: fix kv_unserialize return value when a field is not found (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/serialization')
-rw-r--r--contrib/epee/include/serialization/keyvalue_serialization_overloads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/epee/include/serialization/keyvalue_serialization_overloads.h b/contrib/epee/include/serialization/keyvalue_serialization_overloads.h
index a94ecacc5..2e020b136 100644
--- a/contrib/epee/include/serialization/keyvalue_serialization_overloads.h
+++ b/contrib/epee/include/serialization/keyvalue_serialization_overloads.h
@@ -73,7 +73,7 @@ namespace epee
template<class serializible_type, class t_storage>
static bool unserialize_t_obj(serializible_type& obj, t_storage& stg, typename t_storage::hsection hparent_section, const char* pname)
{
- typename t_storage::hsection hchild_section = stg.open_section(pname, hparent_section, true);
+ typename t_storage::hsection hchild_section = stg.open_section(pname, hparent_section, false);
if(!hchild_section) return false;
return obj._load(stg, hchild_section);
}
@@ -90,7 +90,7 @@ namespace epee
static bool unserialize_t_obj(enableable<serializible_type>& obj, t_storage& stg, typename t_storage::hsection hparent_section, const char* pname)
{
obj.enabled = false;
- typename t_storage::hsection hchild_section = stg.open_section(pname, hparent_section, true);
+ typename t_storage::hsection hchild_section = stg.open_section(pname, hparent_section, false);
if(!hchild_section) return false;
obj.enabled = true;
return obj.v._load(stg, hchild_section);