mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add memory validation before trying to access client data
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -1019,8 +1019,11 @@ void validate_access_oTfd(int timeidx, int pos, int line, const char * function,
|
||||
void reresolveHostnames(void)
|
||||
{
|
||||
int clientID;
|
||||
for(clientID = 0; clientID < counters.clients_MAX; clientID++)
|
||||
for(clientID = 0; clientID < counters.clients; clientID++)
|
||||
{
|
||||
// Memory validation
|
||||
validate_access("clients", clientID, true, __LINE__, __FUNCTION__, __FILE__);
|
||||
|
||||
// Process this client only if it has at least one active query in the log
|
||||
if(clients[clientID].count < 1)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user