Skip to content
Snippets Groups Projects
Commit 8bd7e0b1 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

uClibc: Fix lookup with DNS search in multi-threaded application.


Signed-off-by: default avatarJiri Slachta <slachta@cesnet.cz>

SVN-Revision: 39179
parent c4b013f0
No related branches found
No related tags found
No related merge requests found
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -3581,6 +3581,7 @@ res_init(void)
if (!_res.id)
_res.id = res_randomid();
+ __res_sync = NULL;
__res_vinit(&_res, 1);
__res_sync = res_sync_func;
--
cgit v0.9.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment