[libxml2] run close socket on Solaris, same as we do on other platforms



commit 283c83e0d3bca73b61c1d116c05fe4ccaa96ec04
Author: Denis Pauk <pauk denis gmail com>
Date:   Tue Aug 6 09:49:42 2013 +0300

    run close socket on Solaris, same as we do on other platforms
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705188

 nanohttp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/nanohttp.c b/nanohttp.c
index ac47ea6..640b350 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]