Fix return value in PkiUtility

refs #10632
This commit is contained in:
Jean Flach 2015-11-26 11:10:55 +01:00 committed by Gunnar Beutner
parent 3916ef0904
commit 356d11b40d
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ boost::shared_ptr<X509> 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<X509>();
}
boost::shared_ptr<SSL_CTX> sslContext;
@ -134,7 +134,7 @@ boost::shared_ptr<X509> 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<X509>();
}
TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);