mirror of
https://github.com/reactos/reactos.git
synced 2024-07-13 16:15:05 +00:00
[IP]
- Set address length in the TDI address struct - Simplify copying the address - Zero the sin_zero member svn path=/trunk/; revision=52447
This commit is contained in:
parent
2d89dd3da3
commit
a77b5fde2c
|
@ -135,16 +135,15 @@ VOID DGDeliverData(
|
|||
RTAIPAddress = (PTA_IP_ADDRESS)Current->ReturnInfo->RemoteAddress;
|
||||
RTAIPAddress->TAAddressCount = 1;
|
||||
RTAIPAddress->Address->AddressType = TDI_ADDRESS_TYPE_IP;
|
||||
RTAIPAddress->Address->AddressLength = TDI_ADDRESS_LENGTH_IP;
|
||||
RTAIPAddress->Address->Address->sin_port = SrcPort;
|
||||
RTAIPAddress->Address->Address->in_addr = SrcAddress->Address.IPv4Address;
|
||||
RtlZeroMemory(RTAIPAddress->Address->Address->sin_zero, 8);
|
||||
|
||||
TI_DbgPrint(MAX_TRACE, ("(A: %08x) Addr %08x Port %04x\n",
|
||||
RTAIPAddress,
|
||||
SrcAddress->Address.IPv4Address, SrcPort));
|
||||
|
||||
RtlCopyMemory( &RTAIPAddress->Address->Address->in_addr,
|
||||
&SrcAddress->Address.IPv4Address,
|
||||
sizeof(SrcAddress->Address.IPv4Address) );
|
||||
|
||||
ReferenceObject(AddrFile);
|
||||
UnlockObject(AddrFile, OldIrql);
|
||||
|
||||
|
|
Loading…
Reference in a new issue