mirror of https://github.com/Icinga/icinga2.git
Fix nullptr deref
This commit is contained in:
parent
f5f8b90ec8
commit
e1c46cedd1
|
@ -165,9 +165,12 @@ void HttpServerConnection::ProcessMessageAsync(HttpRequest& request)
|
||||||
|
|
||||||
String requestUrl = request.RequestUrl->Format();
|
String requestUrl = request.RequestUrl->Format();
|
||||||
|
|
||||||
|
Socket::Ptr socket = m_Stream->GetSocket();
|
||||||
|
|
||||||
Log(LogInformation, "HttpServerConnection")
|
Log(LogInformation, "HttpServerConnection")
|
||||||
<< "Request: " << request.RequestMethod << " " << requestUrl
|
<< "Request: " << request.RequestMethod << " " << requestUrl
|
||||||
<< " (from " << m_Stream->GetSocket()->GetPeerAddress() << ", user: " << (user ? user->GetName() : "<unauthenticated>") << ")";
|
<< " (from " << (socket ? socket->GetPeerAddress() : "<unkown>")
|
||||||
|
<< ", user: " << (user ? user->GetName() : "<unauthenticated>") << ")";
|
||||||
|
|
||||||
HttpResponse response(m_Stream, request);
|
HttpResponse response(m_Stream, request);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue