1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +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) while (true)
{ {
Zero(&s->ServerIP_CacheForNextConnect, sizeof(IP)); 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)) if (s->Link != NULL && ((*s->Link->StopAllLinkFlag) || s->Link->Halting))
{ {