]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix shutdown of socket on mod_xml_rpc (MDXMLINT-30)
authorMichael Jerris <mike@jerris.com>
Mon, 11 Aug 2008 18:25:03 +0000 (18:25 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 11 Aug 2008 18:25:03 +0000 (18:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9242 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/xmlrpc-c/lib/abyss/src/socket_win.c

index 757bdeae096d9166dcf58eddab70ce8efc6b37ad..730689584ec609e2c8597e9f941897f7f5916d16 100644 (file)
@@ -791,6 +791,10 @@ chanSwitchInterrupt(TChanSwitch * const chanSwitchP) {
   Actually, this is just a no-op because we don't yet know how to
   accomplish that.
 -----------------------------------------------------------------------------*/
+    struct socketWin * const socketWinP = chanSwitchP->implP;
+
+    if (!socketWinP->userSuppliedWinsock)
+        closesocket(socketWinP->winsock);
 
 }