]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
NetmaskTree: Drop the 'noexcept' qualifier on the TreeNode ctor 10900/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Oct 2021 07:16:52 +0000 (09:16 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Oct 2021 07:16:52 +0000 (09:16 +0200)
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

index c46c5a8655ffce5ed88b1498ad401324aaca8ab6..b36f0e27723607d1bd252f22da547fa8d0611b77 100644 (file)
@@ -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()) {
     }