mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[IP] Unlock Connection when TCPAllocatePort() fails. CORE-18371
Addendum to 874d317 (0.4.15-dev-5707, #5074).
This commit is contained in:
committed by
Thomas Faber
parent
539c316589
commit
2010a5b8d9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user