From: Jean Flach Date: Fri, 23 Feb 2018 09:27:55 +0000 (+0100) Subject: Build/Merge fixes X-Git-Tag: v2.8.2~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adc054097dcd92d846a1ae6f980b2a5ab14219af;p=icinga2 Build/Merge fixes --- diff --git a/lib/remote/httpserverconnection.cpp b/lib/remote/httpserverconnection.cpp index 1c236ed5a..57f44f22b 100644 --- a/lib/remote/httpserverconnection.cpp +++ b/lib/remote/httpserverconnection.cpp @@ -189,14 +189,13 @@ bool HttpServerConnection::ProcessMessage(void) bool HttpServerConnection::ManageHeaders(HttpResponse& response) { static const size_t defaultContentLengthLimit = 1 * 1028 * 1028; - static const Dictionary::Ptr specialContentLengthLimits = new Dictionary({ - {"*", 512 * 1028 * 1028}, - {"config/modify", 512 * 1028 * 1028}, - {"console", 512 * 1028 * 1028}, - {"objects/create", 512 * 1028 * 1028}, - {"objects/modify", 512 * 1028 * 1028}, - {"objects/delete", 512 * 1028 * 1028} - }); + static const Dictionary::Ptr specialContentLengthLimits = new Dictionary; + specialContentLengthLimits->Set("*", 512 * 1028 * 1028); + specialContentLengthLimits->Set("config/modify", 512 * 1028 * 1028); + specialContentLengthLimits->Set("console", 512 * 1028 * 1028); + specialContentLengthLimits->Set("objects/create", 512 * 1028 * 1028); + specialContentLengthLimits->Set("objects/modify", 512 * 1028 * 1028); + specialContentLengthLimits->Set("objects/delete", 512 * 1028 * 1028); if (m_CurrentRequest.Headers->Get("expect") == "100-continue") { String continueResponse = "HTTP/1.1 100 Continue\r\n\r\n"; diff --git a/lib/remote/pkiutility.cpp b/lib/remote/pkiutility.cpp index b9da04ebe..080626af5 100644 --- a/lib/remote/pkiutility.cpp +++ b/lib/remote/pkiutility.cpp @@ -124,7 +124,7 @@ boost::shared_ptr PkiUtility::FetchCert(const String& host, const String& } catch (const std::exception& ex) { Log(LogCritical, "pki") << "Client TLS handshake failed. (" << ex.what() << ")"; - return std::shared_ptr(); + return boost::shared_ptr(); } return stream->GetPeerCertificate();