Merge pull request #617 from east/dnsblfix2

dnsbl fix: HostLookup check result properly
This commit is contained in:
heinrich5991 2017-02-02 09:28:21 +01:00 committed by GitHub
commit 33cb627772

View file

@ -1727,7 +1727,7 @@ int CServer::Run()
m_aClients[c].m_DnsblLookup.m_Job.Status() == CJob::STATE_DONE) m_aClients[c].m_DnsblLookup.m_Job.Status() == CJob::STATE_DONE)
{ {
if (m_aClients[c].m_DnsblLookup.m_Addr.type == NETTYPE_INVALID) if (m_aClients[c].m_DnsblLookup.m_Job.Result() != 0)
{ {
// entry not found -> whitelisted // entry not found -> whitelisted
m_aClients[c].m_DnsblState = CClient::DNSBL_STATE_WHITELISTED; m_aClients[c].m_DnsblState = CClient::DNSBL_STATE_WHITELISTED;