1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Fixed that NewDhcpOption did not handle DHCP options longer than 255 bytes correctly

This commit is contained in:
Tetsuo Sugiyama 2020-05-22 11:05:36 +09:00 committed by GitHub
parent 09be880263
commit d726719602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3468,8 +3468,8 @@ DHCP_OPTION *NewDhcpOption(UINT id, void *data, UINT size)
ret = ZeroMalloc(sizeof(DHCP_OPTION)); ret = ZeroMalloc(sizeof(DHCP_OPTION));
ret->Data = ZeroMalloc(size); ret->Data = ZeroMalloc(size);
Copy(ret->Data, data, size); Copy(ret->Data, data, size);
ret->Size = (UCHAR)size; ret->Size = size;
ret->Id = (UCHAR)id; ret->Id = id;
return ret; return ret;
} }