diff --git a/lib/cli/pkiutility.cpp b/lib/cli/pkiutility.cpp index b1003665d..2080dede7 100644 --- a/lib/cli/pkiutility.cpp +++ b/lib/cli/pkiutility.cpp @@ -122,7 +122,7 @@ boost::shared_ptr PkiUtility::FetchCert(const String& host, const String& << "Cannot connect to host '" << host << "' on port '" << port << "'"; Log(LogDebug, "pki") << "Cannot connect to host '" << host << "' on port '" << port << "':\n" << DiagnosticInformation(ex); - return NULL; + return boost::shared_ptr(); } boost::shared_ptr sslContext; @@ -134,7 +134,7 @@ boost::shared_ptr PkiUtility::FetchCert(const String& host, const String& << "Cannot make SSL context."; Log(LogDebug, "pki") << "Cannot make SSL context:\n" << DiagnosticInformation(ex); - return NULL; + return boost::shared_ptr(); } TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);