]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pkcs11signers: Fix a possibly unitialized variable
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 1 Aug 2023 11:53:54 +0000 (13:53 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 1 Aug 2023 11:53:54 +0000 (13:53 +0200)
Reported by Coverity as CID 1504120.

pdns/pkcs11signers.cc

index 1a412727d221681398fda7a85ac4980a1ba34502..bfbb89a119672407f449f5ae15b32a044472f245 100644 (file)
@@ -288,7 +288,7 @@ class Pkcs11Token {
     CK_OBJECT_HANDLE d_public_key;
     CK_OBJECT_HANDLE d_private_key;
     CK_KEY_TYPE d_key_type;
-    bool d_always_auth;
+    bool d_always_auth{false};
 
     CK_ULONG d_bits;
     std::string d_exponent;