dns_cache: fix issue of incorrect cache timeout when the process is restarted.

This commit is contained in:
Nick Peng
2023-11-14 23:21:04 +08:00
parent eb0d0336de
commit b3e16c3c60
4 changed files with 15 additions and 15 deletions

View File

@@ -4370,8 +4370,6 @@ int dns_client_init(void)
return -1;
}
srandom(time(NULL));
memset(&client, 0, sizeof(client));
pthread_attr_init(&attr);
atomic_set(&client.dns_server_num, 0);