fix segfault in DNS mapping lookup code

the allocatorthread got pointers to RAM which were reallocated
behind the back, and if realloc() couldn't grow in-place, lead
to segfaults in applications that do a lot of DNS-lookups such
as webbrowsers.

closes #66
closes #31

thanks to @ravomavain for tracking down the issue.
This commit is contained in:
rofl0r
2015-06-06 11:41:36 +01:00
parent 53c6c2ca9b
commit 2182eff358
8 changed files with 8 additions and 103 deletions

View File

@ -37,7 +37,6 @@
#include "core.h"
#include "common.h"
#include "shm.h"
#include "allocator_thread.h"
extern int tcp_read_time_out;