summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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