1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2026-05-17 19:24:21 +08:00

fix realloc and add a layer of threadsafety upon dns-list accesses

This commit is contained in:
rofl0r
2011-11-06 17:46:11 +01:00
Unverified
parent d5ae1f9202
commit 41e73ab58d
4 changed files with 58 additions and 23 deletions
+3
View File
@@ -62,6 +62,9 @@ static void init_lib(void);
static void init_lib(void)
{
#ifdef THREAD_SAFE
pthread_mutex_init(&internal_ips_lock, NULL);
#endif
proxychains_write_log(LOG_PREFIX "DLL init\n");
get_chain_data(proxychains_pd, &proxychains_proxy_count, &proxychains_ct);