mirror of https://github.com/Icinga/icinga2.git
Fix null pointer dereference in ApiClient::TimeoutTimerHandler
fixes #8553
This commit is contained in:
parent
07fd4e6031
commit
2884e8318d
|
@ -257,7 +257,7 @@ Value RequestCertificateHandler(const MessageOrigin& origin, const Dictionary::P
|
||||||
|
|
||||||
void ApiClient::TimeoutTimerHandler(void)
|
void ApiClient::TimeoutTimerHandler(void)
|
||||||
{
|
{
|
||||||
if (m_Seen < Utility::GetTime() - 60 && !m_Endpoint->GetSyncing()) {
|
if (m_Seen < Utility::GetTime() - 60 && (!m_Endpoint || !m_Endpoint->GetSyncing())) {
|
||||||
/* Obtain a strong reference to ourselves because Disconnect otherwise removes the last reference */
|
/* Obtain a strong reference to ourselves because Disconnect otherwise removes the last reference */
|
||||||
ApiClient::Ptr self = this;
|
ApiClient::Ptr self = this;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue