From: Stephan Bosch Date: Wed, 9 Oct 2019 00:06:33 +0000 (+0200) Subject: iputils.hh: NetmaskTree: Make the node_type key value const. X-Git-Tag: auth-4.3.0-beta2~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c4df7c3e67ff379f2747a522e6290618c18a2a1;p=thirdparty%2Fpdns.git iputils.hh: NetmaskTree: Make the node_type key value const. This prevents changing the key used by the tree, which would otherwise provide an opportunity to corrupt the tree. --- diff --git a/pdns/iputils.hh b/pdns/iputils.hh index 69c9a9ec8e..97ef03855f 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -650,7 +650,7 @@ public: typedef Netmask key_type; typedef T value_type; - typedef std::pair node_type; + typedef std::pair node_type; typedef size_t size_type; typedef class Iterator iterator;