Skip to content

Commit ec32867

Browse files
committed
[MSWSOCK]
- Leave the socket's critical section before clearing it's pointer - Fixes the deadlock that occurs after successfully calling accept svn path=/branches/aicom-network-branch/; revision=48506
1 parent 048e0fc commit ec32867

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dll/win32/mswsock/msafd/accept.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,7 @@ WSPAccept(SOCKET Handle,
895895

896896
/* Dereference the socket and clear its pointer for error code logic */
897897
SockDereferenceSocket(Socket);
898+
LeaveCriticalSection(&Socket->Lock);
898899
Socket = NULL;
899900

900901
error:

0 commit comments

Comments
 (0)