summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/Storages/CertificateFileStorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Storages/CertificateFileStorage.cpp b/Swift/Controllers/Storages/CertificateFileStorage.cpp
index 34d1f76..2c242cd 100644
--- a/Swift/Controllers/Storages/CertificateFileStorage.cpp
+++ b/Swift/Controllers/Storages/CertificateFileStorage.cpp
@@ -25,7 +25,7 @@ bool CertificateFileStorage::hasCertificate(Certificate::ref certificate) const
if (boost::filesystem::exists(certificatePath)) {
ByteArray data;
readByteArrayFromFile(data, certificatePath);
- Certificate::ref storedCertificate = certificateFactory->createCertificateFromDER(data);
+ Certificate::ref storedCertificate(certificateFactory->createCertificateFromDER(data));
if (storedCertificate && storedCertificate->toDER() == certificate->toDER()) {
return true;
}