summaryrefslogtreecommitdiff
path: root/nanohttp.c
diff options
context:
space:
mode:
authorDenis Pauk <pauk.denis@gmail.com>2013-08-06 09:49:42 +0300
committerDaniel Veillard <veillard@redhat.com>2013-09-30 10:51:42 +0800
commit283c83e0d3bca73b61c1d116c05fe4ccaa96ec04 (patch)
tree09e319f2d556eae45ed208a2b6e900bbdef3b861 /nanohttp.c
parentc570b37972b364d03605a0c67b8497bc4b3227af (diff)
downloadlibxml2-283c83e0d3bca73b61c1d116c05fe4ccaa96ec04.tar.gz
run close socket on Solaris, same as we do on other platforms
https://bugzilla.gnome.org/show_bug.cgi?id=705188
Diffstat (limited to 'nanohttp.c')
-rw-r--r--nanohttp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nanohttp.c b/nanohttp.c
index ac47ea67..640b3507 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -1003,6 +1003,7 @@ xmlNanoHTTPConnectAttempt(struct sockaddr *addr)
0) {
/* Solaris error code */
__xmlIOErr(XML_FROM_HTTP, 0, "getsockopt failed\n");
+ closesocket(s);
return INVALID_SOCKET;
}
#endif