From: Michael Jerris Date: Mon, 11 Aug 2008 18:25:03 +0000 (+0000) Subject: fix shutdown of socket on mod_xml_rpc (MDXMLINT-30) X-Git-Tag: v1.0.2~1493 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4425dea3c68e67acea629ced7ac82d97a3b4c1f;p=thirdparty%2Ffreeswitch.git 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 --- 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); }