]> WPIA git - cassiopeia.git/commitdiff
fmt: code cleanup in X509.cpp
authorFelix Dörre <felix@dogcraft.de>
Sun, 23 Apr 2017 20:55:35 +0000 (20:55 +0000)
committerFelix Dörre <felix@dogcraft.de>
Mon, 1 May 2017 15:51:52 +0000 (15:51 +0000)
Change-Id: I0f89c49b6d253874bb371520e8b48047d8251b49

src/crypto/X509.cpp

index ee5621c76f86f56046639990ba907d4050c9f4d4..9c2ed9a38d88aa7650940bc69049700146a80334 100644 (file)
@@ -197,7 +197,7 @@ void X509Cert::setExtensions( std::shared_ptr<X509> caCert, std::vector<std::sha
             sk_GENERAL_NAME_pop_free( ref, GENERAL_NAME_free );
         }
     };
-    std::shared_ptr<GENERAL_NAMES> gens = std::shared_ptr<GENERAL_NAMES>( sk_GENERAL_NAME_new_null(), freeGeneralNames );
+    std::shared_ptr<GENERAL_NAMES> gens( sk_GENERAL_NAME_new_null(), freeGeneralNames );
 
     for( auto& name : sans ) {
         GENERAL_NAME *gen = GENERAL_NAME_new();