mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Merge r37029 from aicom-network-fixes
- This fixes the last of all the port allocation bugs that I know of svn path=/trunk/; revision=37032
This commit is contained in:
@@ -286,8 +286,9 @@ NTSTATUS FileOpenAddress(
|
||||
AddrFile->Port =
|
||||
TCPAllocatePort(Address->Address[0].Address[0].sin_port);
|
||||
|
||||
if (Address->Address[0].Address[0].sin_port &&
|
||||
AddrFile->Port != Address->Address[0].Address[0].sin_port)
|
||||
if ((Address->Address[0].Address[0].sin_port &&
|
||||
AddrFile->Port != Address->Address[0].Address[0].sin_port) ||
|
||||
AddrFile->Port == 0xffff)
|
||||
{
|
||||
ExFreePool(AddrFile);
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
@@ -301,8 +302,9 @@ NTSTATUS FileOpenAddress(
|
||||
AddrFile->Port =
|
||||
UDPAllocatePort(Address->Address[0].Address[0].sin_port);
|
||||
|
||||
if (Address->Address[0].Address[0].sin_port &&
|
||||
AddrFile->Port != Address->Address[0].Address[0].sin_port)
|
||||
if ((Address->Address[0].Address[0].sin_port &&
|
||||
AddrFile->Port != Address->Address[0].Address[0].sin_port) ||
|
||||
AddrFile->Port == 0xffff)
|
||||
{
|
||||
ExFreePool(AddrFile);
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
Reference in New Issue
Block a user