]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth lmdb: default values for KeyDataDB members, thanks ubsan 11406/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 9 Feb 2022 10:55:25 +0000 (11:55 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 11 Mar 2022 14:53:54 +0000 (15:53 +0100)
(cherry picked from commit 9f5f4decf700e0616608e8dff67d29c312de2584, backport of #11306)

modules/lmdbbackend/lmdbbackend.hh

index b02ed3304259e30c5eb25c9f1bc0a3c185042f44..99244a9ef86f626ed5e5dede5f1b9e6a8bc63573 100644 (file)
@@ -219,9 +219,9 @@ public:
   {
     DNSName domain;
     std::string content;
-    unsigned int flags;
-    bool active;
-    bool published;
+    unsigned int flags{0};
+    bool active{true};
+    bool published{true};
   };
   class LMDBResourceRecord : public DNSResourceRecord
   {