From 2d1e11bfe9ba80d12b58092e748f373e99816319 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 26 Oct 2021 09:16:52 +0200 Subject: [PATCH] NetmaskTree: Drop the 'noexcept' qualifier on the TreeNode ctor Coverity reports that it was already too restrictive with the existing Netmask key (see CID 1465032) and clearly is now for the AddressAndPort one (CID 373668). --- pdns/iputils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/iputils.hh b/pdns/iputils.hh index c46c5a8655..b36f0e2772 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -705,7 +705,7 @@ private: explicit TreeNode() noexcept : parent(nullptr), node(), assigned(false), d_bits(0) { } - explicit TreeNode(const key_type& key) noexcept : + explicit TreeNode(const key_type& key) : parent(nullptr), node({key.getNormalized(), value_type()}), assigned(false), d_bits(key.getFullBits()) { } -- 2.47.2