1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 01:59:53 +03:00

Merge PR #1134: Fixed that NewDhcpOption can't handle DHCP options longer than 255 bytes

This commit is contained in:
Davide Beatrici 2020-05-22 05:39:54 +02:00 committed by GitHub
commit 2fafd7c70e
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->Data = ZeroMalloc(size);
Copy(ret->Data, data, size);
ret->Size = (UCHAR)size;
ret->Id = (UCHAR)id;
ret->Size = size;
ret->Id = id;
return ret;
}