DnsServer: fixed bug in ProcessBlockedQuery() caused by missing else condition check which would cause the server to return Refused response when block zone is not empty and block list zone is empty.

This commit is contained in:
Shreyas Zare
2021-04-11 20:43:34 +05:30
parent e710cc8a7e
commit eb1005697e

View File

@@ -1499,12 +1499,19 @@ namespace DnsServerCore.Dns
{
//domain not blocked in blocked zone
if (_blockListZoneManager.TotalZonesBlocked > 0)
{
response = _blockListZoneManager.Query(request); //check in block list zone
if (response == null)
return null; //domain not blocked in block list zone
if (response == null)
return null; //domain not blocked in block list zone
//domain is blocked in block list zone
//domain is blocked in block list zone
}
else
{
//domain not blocked in block list zone
return null;
}
}
else
{