diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2000-10-12 04:29:44 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2000-10-12 04:29:44 +0000 |
| commit | 1ae8b96572d553da6f8edc1975322553819615a5 (patch) | |
| tree | cb52deafcb57d9660c154ef47b91cfe6e159dc0e /lib/libc | |
| parent | 5984fd1d1f29b5dce2a6e215470d977b55adf062 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/net/res_send.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index e720fc7bc234..cfcf81529408 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 */ |
