1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-25 02:49:52 +03:00

Merge pull request #1953 from hiura2023/master

IPC.c: Cast the pointer to a defined size due to the error in compiling.
This commit is contained in:
Ilya Shipitsin 2024-02-21 21:49:53 +01:00 committed by GitHub
commit 36456e63a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1537,7 +1537,8 @@ void IPCProcessL3EventsEx(IPC *ipc, UINT64 now)
// Remove link-layer address options for Windows clients (required on Windows 11) // Remove link-layer address options for Windows clients (required on Windows 11)
if (header_size > 0) if (header_size > 0)
{ {
UCHAR *src = p->ICMPv6HeaderPacketInfo.Headers.HeaderPointer + header_size; //UCHAR *src = p->ICMPv6HeaderPacketInfo.Headers.HeaderPointer + header_size;
UCHAR* src = (UCHAR *)p->ICMPv6HeaderPacketInfo.Headers.HeaderPointer + header_size;// Cast the pointer to UCHAR *.
UINT opt_size = p->ICMPv6HeaderPacketInfo.DataSize - header_size; UINT opt_size = p->ICMPv6HeaderPacketInfo.DataSize - header_size;
UCHAR *dst = src; UCHAR *dst = src;
UINT removed = 0; UINT removed = 0;