From 60e5c34fe39232b5f92bad60d986fda29e4ba05f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 21 Sep 2012 17:29:12 +0200 Subject: inet: fix getting the nameserver from _res state after res_init. Fixes displaying the nameserver in busybox nslookup. Signed-off-by: Felix Fietkau Signed-off-by: Bernhard Reutner-Fischer --- libc/inet/resolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/inet') diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 4777977fe..ffd3fe8c4 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; } -- cgit v1.2.3