From 4e05a4ca7ff23804b6050354ac68bc23651334df Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Thu, 26 Nov 2015 11:10:55 +0100 Subject: [PATCH] Fix return value in PkiUtility refs #10632 --- lib/cli/pkiutility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.40.0