1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-06 15:54:57 +03:00

Fix use-after-free timeout issue for L2TP and SSTP

This commit is contained in:
domosekai
2021-07-10 16:07:09 +00:00
parent a2f30c8aad
commit dfb105c2d7
8 changed files with 29 additions and 22 deletions

View File

@ -16899,6 +16899,7 @@ TUBE *NewTube(UINT size_of_header)
t->SockEvent = NewSockEvent();
t->SizeOfHeader = size_of_header;
t->DataTimeout = 0;
return t;
}

View File

@ -412,6 +412,7 @@ struct TUBE
bool IsInFlushList; // Whether it is registered in the Tube Flush List
void *Param1, *Param2, *Param3;
UINT IntParam1, IntParam2, IntParam3;
UINT64 DataTimeout;
};
// Data that is to send and to receive in the tube