mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Properly deal with a larger buffer than we expect.
svn path=/trunk/; revision=7284
This commit is contained in:
@@ -541,7 +541,7 @@ GetNetworkParams(PFIXED_INFO pFixedInfo, PULONG pOutBufLen)
|
||||
if (PrivateNSEnum.NumServers > 1)
|
||||
memcpy( &AddressAfterFixedInfo[0],
|
||||
&PrivateNSEnum.AddrString[1],
|
||||
sizeof(IP_ADDR_STRING) * NumberOfServersAllowed - 1 );
|
||||
sizeof(IP_ADDR_STRING) * (PrivateNSEnum.NumServers - 1) );
|
||||
else
|
||||
pFixedInfo->CurrentDnsServer->Next = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user