1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +03:00

Zero out protocol strings when reconnecting

This commit is contained in:
Yihong Wu 2022-09-13 19:14:33 +09:00
parent e85fc4435e
commit dc5da0c6a9

View File

@ -1430,6 +1430,8 @@ void ClientThread(THREAD *t, void *param)
while (true)
{
Zero(&s->ServerIP_CacheForNextConnect, sizeof(IP));
Zero(s->UnderlayProtocol, sizeof(s->UnderlayProtocol));
Zero(s->ProtocolDetails, sizeof(s->ProtocolDetails));
if (s->Link != NULL && ((*s->Link->StopAllLinkFlag) || s->Link->Halting))
{