From d81549a7b1553f399e6effdf17746242b89d9222 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 25 Mar 2019 22:19:52 +0000 Subject: Various other fixes including removal of more mem*() issues and netlink fixes for AARCH64. --- node/NetworkConfig.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node/NetworkConfig.cpp') diff --git a/node/NetworkConfig.cpp b/node/NetworkConfig.cpp index 8be72008..20ad2e25 100644 --- a/node/NetworkConfig.cpp +++ b/node/NetworkConfig.cpp @@ -200,10 +200,11 @@ bool NetworkConfig::toDictionary(Dictionary &d,b bool NetworkConfig::fromDictionary(const Dictionary &d) { + static const NetworkConfig NIL_NC; Buffer *tmp = new Buffer(); try { - *this = NetworkConfig(); + *this = NIL_NC; // Fields that are always present, new or old this->networkId = d.getUI(ZT_NETWORKCONFIG_DICT_KEY_NETWORK_ID,0); -- cgit v1.2.3