mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2025-09-07 10:47:02 +00:00
put a mutex lock around gethostent() usage, to prevent internal
races. the external usage was covered by the latest commit.
This commit is contained in:
@ -93,6 +93,7 @@ static void* load_sym(char* symname, void* proxyfunc) {
|
||||
|
||||
static void do_init(void) {
|
||||
MUTEX_INIT(&internal_ips_lock, NULL);
|
||||
MUTEX_INIT(&hostdb_lock, NULL);
|
||||
/* read the config file */
|
||||
get_chain_data(proxychains_pd, &proxychains_proxy_count, &proxychains_ct);
|
||||
|
||||
|
Reference in New Issue
Block a user