1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Use correct sizeof value (#426)

* Use correct sizeof() value

* Use correct size for Zero()
This commit is contained in:
Maks Naumov 2018-04-11 23:53:59 +03:00 committed by Moataz Elmasry
parent 596493e1a1
commit 3f553abf1d
2 changed files with 4 additions and 4 deletions

View File

@ -1619,7 +1619,7 @@ UINT StGetHubMsg(ADMIN *a, RPC_MSG *t)
else
{
FreeRpcMsg(t);
Zero(t, sizeof(t));
Zero(t, sizeof(RPC_MSG));
t->Msg = GetHubMsg(h);
@ -6304,7 +6304,7 @@ UINT StGetLink(ADMIN *a, RPC_CREATE_LINK *t)
StrCpy(hubname, sizeof(hubname), t->HubName);
FreeRpcCreateLink(t);
Zero(t, sizeof(t));
Zero(t, sizeof(RPC_CREATE_LINK));
StrCpy(t->HubName, sizeof(t->HubName), hubname);
Lock(k->lock);
@ -7750,7 +7750,7 @@ UINT StGetHubRadius(ADMIN *a, RPC_RADIUS *t)
return ERR_HUB_NOT_FOUND;
}
Zero(t, sizeof(t));
Zero(t, sizeof(RPC_RADIUS));
//GetRadiusServer(h, t->RadiusServerName, sizeof(t->RadiusServerName),
// &t->RadiusPort, t->RadiusSecret, sizeof(t->RadiusSecret));
GetRadiusServerEx(h, t->RadiusServerName, sizeof(t->RadiusServerName),

View File

@ -1341,7 +1341,7 @@ void GetServerCaps(SERVER *s, CAPSLIST *t)
GetServerCapsMain(s, s->CapsListCache);
}
Copy(t, s->CapsListCache, sizeof(s->CapsListCache));
Copy(t, s->CapsListCache, sizeof(CAPSLIST));
}
Unlock(s->CapsCacheLock);
}