[PATCH 2/9] libc/inet/resolv.c: fix getting the nameserver from _res state after res_init.
Florian Fainelli
florian at openwrt.org
Fri Sep 21 15:29:12 UTC 2012
From: Felix Fietkau <nbd at openwrt.org>
Fixes displaying the nameserver in busybox nslookup.
Signed-off-by: Felix Fietkau <nbd at openwrt.org>
---
libc/inet/resolv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index fff2794..649128a 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -3645,11 +3645,11 @@ res_init(void)
*/
if (!_res.id)
_res.id = res_randomid();
- __res_sync = res_sync_func;
__UCLIBC_MUTEX_UNLOCK(__resolv_lock);
__res_vinit(&_res, 1);
+ __res_sync = res_sync_func;
return 0;
}
--
1.7.9.5
More information about the uClibc
mailing list