1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-13 07:13:00 +03:00

Cedar/Admin.c: Restrict StGetProtoOptions() access to server administrators

This is in order to protect the WireGuard private key.
This commit is contained in:
Davide Beatrici 2021-02-04 06:12:11 +01:00
parent a8580458c4
commit ef24ff74c8

View File

@ -10171,6 +10171,8 @@ UINT StGetProtoOptions(ADMIN *a, RPC_PROTO_OPTIONS *t)
UINT ret = ERR_NO_ERROR;
LIST *options;
SERVER_ADMIN_ONLY;
if (proto == NULL)
{
return ERR_NOT_SUPPORTED;