diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index a4acf9c20..acd46a896 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -842,6 +842,7 @@ void CServer::InitDnsbl(int ClientID) IEngine *pEngine = Kernel()->RequestInterface(); pEngine->AddJob(m_aClients[ClientID].m_pDnsblLookup = std::make_shared(aBuf, NETTYPE_IPV4)); + m_aClients[ClientID].m_DnsblState = CClient::DNSBL_STATE_PENDING; } #ifdef CONF_FAMILY_UNIX @@ -1876,7 +1877,6 @@ int CServer::Run() if (m_aClients[ClientID].m_DnsblState == CClient::DNSBL_STATE_NONE) { // initiate dnsbl lookup - m_aClients[ClientID].m_DnsblState = CClient::DNSBL_STATE_PENDING; InitDnsbl(ClientID); } else if (m_aClients[ClientID].m_DnsblState == CClient::DNSBL_STATE_PENDING &&