OSDN Git Service

inet: Fix LT{.old,} compilation due to res_iclose
[uclinux-h8/uClibc.git] / libc / inet / resolv.c
index 769b65f..b557b09 100644 (file)
@@ -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__