- Fixed some address calculations

svn path=/trunk/; revision=8074
This commit is contained in:
Filip Navara 2004-02-07 12:03:11 +00:00
parent 826d5e693a
commit 6c639db134
2 changed files with 2 additions and 2 deletions

View file

@ -277,7 +277,7 @@ NTSTATUS FileOpenAddress(
/* Locate address entry. If specified address is 0, a random address is chosen */
/* FIXME: IPv4 only */
IPv4Address = ((PTDI_ADDRESS_IP)Address->Address)->in_addr;
IPv4Address = Address->Address[0].Address[0].in_addr;
if (IPv4Address == 0)
AddrFile->ADE = IPGetDefaultADE(ADE_UNICAST);
else

View file

@ -369,7 +369,7 @@ NTSTATUS TCPConnect(
Connection->LocalPort = Connection->AddressFile->Port;
Status = AddrBuildAddress(
(PTA_ADDRESS)ConnInfo->RemoteAddress,
(PTA_ADDRESS)(&((PTRANSPORT_ADDRESS)ConnInfo->RemoteAddress)->Address[0]),
&Connection->RemoteAddress,
&Connection->RemotePort);
if (!NT_SUCCESS(Status)) {