mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:47:36 +00:00
Properly deal with a larger buffer than we expect.
svn path=/trunk/; revision=7284
This commit is contained in:
parent
25dba4902b
commit
cba7351fef
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue