From 0c4df7c3e67ff379f2747a522e6290618c18a2a1 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Wed, 9 Oct 2019 02:06:33 +0200 Subject: [PATCH] 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. --- pdns/iputils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2