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:
parent
596493e1a1
commit
3f553abf1d
@ -1619,7 +1619,7 @@ UINT StGetHubMsg(ADMIN *a, RPC_MSG *t)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
FreeRpcMsg(t);
|
FreeRpcMsg(t);
|
||||||
Zero(t, sizeof(t));
|
Zero(t, sizeof(RPC_MSG));
|
||||||
|
|
||||||
t->Msg = GetHubMsg(h);
|
t->Msg = GetHubMsg(h);
|
||||||
|
|
||||||
@ -6304,7 +6304,7 @@ UINT StGetLink(ADMIN *a, RPC_CREATE_LINK *t)
|
|||||||
|
|
||||||
StrCpy(hubname, sizeof(hubname), t->HubName);
|
StrCpy(hubname, sizeof(hubname), t->HubName);
|
||||||
FreeRpcCreateLink(t);
|
FreeRpcCreateLink(t);
|
||||||
Zero(t, sizeof(t));
|
Zero(t, sizeof(RPC_CREATE_LINK));
|
||||||
StrCpy(t->HubName, sizeof(t->HubName), hubname);
|
StrCpy(t->HubName, sizeof(t->HubName), hubname);
|
||||||
|
|
||||||
Lock(k->lock);
|
Lock(k->lock);
|
||||||
@ -7750,7 +7750,7 @@ UINT StGetHubRadius(ADMIN *a, RPC_RADIUS *t)
|
|||||||
return ERR_HUB_NOT_FOUND;
|
return ERR_HUB_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
Zero(t, sizeof(t));
|
Zero(t, sizeof(RPC_RADIUS));
|
||||||
//GetRadiusServer(h, t->RadiusServerName, sizeof(t->RadiusServerName),
|
//GetRadiusServer(h, t->RadiusServerName, sizeof(t->RadiusServerName),
|
||||||
// &t->RadiusPort, t->RadiusSecret, sizeof(t->RadiusSecret));
|
// &t->RadiusPort, t->RadiusSecret, sizeof(t->RadiusSecret));
|
||||||
GetRadiusServerEx(h, t->RadiusServerName, sizeof(t->RadiusServerName),
|
GetRadiusServerEx(h, t->RadiusServerName, sizeof(t->RadiusServerName),
|
||||||
|
@ -1341,7 +1341,7 @@ void GetServerCaps(SERVER *s, CAPSLIST *t)
|
|||||||
GetServerCapsMain(s, s->CapsListCache);
|
GetServerCapsMain(s, s->CapsListCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
Copy(t, s->CapsListCache, sizeof(s->CapsListCache));
|
Copy(t, s->CapsListCache, sizeof(CAPSLIST));
|
||||||
}
|
}
|
||||||
Unlock(s->CapsCacheLock);
|
Unlock(s->CapsCacheLock);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user