projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef436bd
)
use sclose() to close sockets
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 22 Apr 2002 23:53:49 +0000
(23:53 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 22 Apr 2002 23:53:49 +0000
(23:53 +0000)
lib/hostip.c
patch
|
blob
|
history
diff --git
a/lib/hostip.c
b/lib/hostip.c
index
43583f4
..
640780c
100644
(file)
--- a/
lib/hostip.c
+++ b/
lib/hostip.c
@@
-333,7
+333,7
@@
Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
/* This seems to be an IPv6-capable stack, use PF_UNSPEC for the widest
* possible checks. And close the socket again.
*/
- close(s);
+
s
close(s);
memset(&hints, 0, sizeof(hints));
hints.ai_family = pf;