summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/res_send.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c
index e720fc7..cfcf815 100644
--- a/lib/libc/net/res_send.c
+++ b/lib/libc/net/res_send.c
@@ -420,7 +420,7 @@ res_send(buf, buflen, ans, anssiz)
res_close();
goto next_ns;
case res_done:
- close(kq);
+ _close(kq);
return (resplen);
case res_modified:
/* give the hook another try */
@@ -430,7 +430,7 @@ res_send(buf, buflen, ans, anssiz)
case res_error:
/*FALLTHROUGH*/
default:
- close(kq);
+ _close(kq);
return (-1);
}
} while (!done);
@@ -868,19 +868,19 @@ read_len:
case res_error:
/*FALLTHROUGH*/
default:
- close(kq);
+ _close(kq);
return (-1);
}
} while (!done);
}
- close(kq);
+ _close(kq);
return (resplen);
next_ns: ;
} /*foreach ns*/
} /*foreach retry*/
res_close();
- close(kq);
+ _close(kq);
if (!v_circuit) {
if (!gotsomewhere)
errno = ECONNREFUSED; /* no nameservers found */
OpenPOWER on IntegriCloud