From 51e534ff4ce23702fc2b904d14e4d565e0bd5cf6 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Sun, 29 Mar 2020 16:05:29 +0200 Subject: [PATCH] Fix CA verification regression Uninitialized bool values may evaluate to true while it should be false. --- lib/remote/jsonrpcconnection-pki.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/jsonrpcconnection-pki.cpp b/lib/remote/jsonrpcconnection-pki.cpp index 776043843..b71f91cfe 100644 --- a/lib/remote/jsonrpcconnection-pki.cpp +++ b/lib/remote/jsonrpcconnection-pki.cpp @@ -53,7 +53,7 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona String cn = GetCertificateCN(cert); - bool signedByCA; + bool signedByCA = false; try { signedByCA = VerifyCertificate(cacert, cert);