]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
security_file_certgen: remove useless get()
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 6 Nov 2016 15:57:02 +0000 (04:57 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 6 Nov 2016 15:57:02 +0000 (04:57 +1300)
src/security/cert_generators/file/security_file_certgen.cc

index 2b4bbd6452b4cb55ccd74c4dfe7096f72e6bef80..0e7fd9a162da9421c902a65475431a4121e213bd 100644 (file)
@@ -200,7 +200,7 @@ static bool processNewRequest(Ssl::CrtdMessage & request_message, std::string co
         error = err.what();
     }
 
-    if (cert.get()) {
+    if (cert) {
         if (!Ssl::certificateMatchesProperties(cert.get(), certProperties)) {
             // The certificate changed (renewed or other reason).
             // Generete a new one with the updated fields.