summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-17 06:19:23 (GMT)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-20 10:08:49 (GMT)
commit044ac16085094d6ec00ea0739d7b92df18793109 (patch)
tree4f9f5a5b48d3df7a43bc5b48c437b92862508d3c /libc/inet
parent479faad8a6e7acd214a18796e364c187ecf6d912 (diff)
inet: Fix LT{.old,} compilation due to res_iclose
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 769b65f..b557b09 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__