From: Stephan Bosch Date: Mon, 30 Sep 2019 08:30:25 +0000 (+0200) Subject: iputils.hh: NetmaskTree: Rename field "root" to "d_root" X-Git-Tag: auth-4.3.0-beta2~20^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4b291fe482fc7295d458a11bdee9b7a797d606a;p=thirdparty%2Fpdns.git iputils.hh: NetmaskTree: Rename field "root" to "d_root" --- diff --git a/pdns/iputils.hh b/pdns/iputils.hh index 2e88953794..6b75dd6a2b 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -738,8 +738,8 @@ public: //(new TreeNode(0)); - TreeNode* node = root.get(); + if (!d_root) d_root = unique_ptr(new TreeNode(0)); + TreeNode* node = d_root.get(); node_type* value = nullptr; if (key.getNetwork().sin4.sin_family == AF_INET) { @@ -804,9 +804,9 @@ public: // root; // d_root; // _nodes; //