mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 01:59:53 +03:00
Fixed that NewDhcpOption did not handle DHCP options longer than 255 bytes correctly
This commit is contained in:
parent
09be880263
commit
d726719602
@ -3468,8 +3468,8 @@ DHCP_OPTION *NewDhcpOption(UINT id, void *data, UINT size)
|
||||
ret = ZeroMalloc(sizeof(DHCP_OPTION));
|
||||
ret->Data = ZeroMalloc(size);
|
||||
Copy(ret->Data, data, size);
|
||||
ret->Size = (UCHAR)size;
|
||||
ret->Id = (UCHAR)id;
|
||||
ret->Size = size;
|
||||
ret->Id = id;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user