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
parent d5ae1f9202
commit 41e73ab58d
4 changed files with 58 additions and 23 deletions

View File

@ -37,6 +37,10 @@ typedef struct {
} internal_ip_lookup_table;
extern internal_ip_lookup_table internal_ips;
#ifdef THREAD_SAFE
#include <pthread.h>
extern pthread_mutex_t internal_ips_lock;
#endif
/*error codes*/
typedef enum {