mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[IP] Unlock Connection when TCPAllocatePort() fails. CORE-18371
Addendum to 874d317
(0.4.15-dev-5707, #5074).
This commit is contained in:
parent
539c316589
commit
2010a5b8d9
2 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,7 @@ NTSTATUS TCPListen(PCONNECTION_ENDPOINT Connection, UINT Backlog)
|
|||
if (AllocatedPort == (UINT) -1)
|
||||
{
|
||||
DbgPrint("ERR: No more ports available.\n");
|
||||
UnlockObject(Connection);
|
||||
return STATUS_TOO_MANY_ADDRESSES;
|
||||
}
|
||||
Connection->AddressFile->Port = AllocatedPort;
|
||||
|
|
|
@ -386,6 +386,7 @@ NTSTATUS TCPConnect
|
|||
if (AllocatedPort == (UINT) -1)
|
||||
{
|
||||
DbgPrint("ERR: No more ports available.\n");
|
||||
UnlockObject(Connection);
|
||||
return STATUS_TOO_MANY_ADDRESSES;
|
||||
}
|
||||
Connection->AddressFile->Port = AllocatedPort;
|
||||
|
|
Loading…
Reference in a new issue