Author: cgutman
Date: Tue Aug 10 06:46:00 2010
New Revision: 48506
URL:
http://svn.reactos.org/svn/reactos?rev=48506&view=rev
Log:
[MSWSOCK]
- Leave the socket's critical section before clearing it's pointer
- Fixes the deadlock that occurs after successfully calling accept
Modified:
branches/aicom-network-branch/dll/win32/mswsock/msafd/accept.c
Modified: branches/aicom-network-branch/dll/win32/mswsock/msafd/accept.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/…
==============================================================================
--- branches/aicom-network-branch/dll/win32/mswsock/msafd/accept.c [iso-8859-1]
(original)
+++ branches/aicom-network-branch/dll/win32/mswsock/msafd/accept.c [iso-8859-1] Tue Aug 10
06:46:00 2010
@@ -895,6 +895,7 @@
/* Dereference the socket and clear its pointer for error code logic */
SockDereferenceSocket(Socket);
+ LeaveCriticalSection(&Socket->Lock);
Socket = NULL;
error: