From f4425dea3c68e67acea629ced7ac82d97a3b4c1f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 11 Aug 2008 18:25:03 +0000 Subject: [PATCH] fix shutdown of socket on mod_xml_rpc (MDXMLINT-30) 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/xmlrpc-c/lib/abyss/src/socket_win.c b/libs/xmlrpc-c/lib/abyss/src/socket_win.c index 757bdeae09..730689584e 100644 --- a/libs/xmlrpc-c/lib/abyss/src/socket_win.c +++ b/libs/xmlrpc-c/lib/abyss/src/socket_win.c @@ -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); }