diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-08-22 02:25:51 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-08-22 02:25:51 +0000 |
| commit | de5a66cfe4cebd7897becca87e276979a7154e27 (patch) | |
| tree | 105407d1e660e5a560af883eb0ad6f42db51de72 /lib/libc | |
| parent | cf08002341adaf15745c420fac915e58e309f7ea (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/net/getaddrinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index f44a14d79919..6d2354415612 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -1146,18 +1146,18 @@ addrconfig(pai) if ((s = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) af = AF_INET; else { - close(s); + _close(s); if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) af = AF_INET6; else - close(s); + _close(s); } } if (af != AF_UNSPEC) { if ((s = socket(af, SOCK_DGRAM, 0)) < 0) return 0; - close(s); + _close(s); } pai->ai_family = af; return 1; |
