From 044ac16085094d6ec00ea0739d7b92df18793109 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sun, 17 Mar 2013 07:19:23 +0100 Subject: inet: Fix LT{.old,} compilation due to res_iclose 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 769b65ffa..b557b097d 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -3536,7 +3536,7 @@ __res_iclose(res_state statp) struct __res_state * rp = statp; __UCLIBC_MUTEX_LOCK(__resolv_lock); if (rp == NULL) - rp = __resp; + rp = __res_state(); __close_nameservers(); __res_sync = NULL; #ifdef __UCLIBC_HAS_IPV6__ -- cgit v1.2.3