1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

HubName has to be set after Copy

Hubname has to be set after copy or it will be an empty string. To get the real hubname (correct casing) we use it directly from the hub instead of the given parameter
This commit is contained in:
hoppler 2018-06-30 10:51:49 +02:00 committed by GitHub
parent be0ebb65c1
commit b0a2a95540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7392,8 +7392,8 @@ UINT StGetSecureNATOption(ADMIN *a, VH_OPTION *t)
} }
Zero(t, sizeof(VH_OPTION)); Zero(t, sizeof(VH_OPTION));
StrCpy(t->HubName, sizeof(t->HubName), hubname);
Copy(t, h->SecureNATOption, sizeof(VH_OPTION)); Copy(t, h->SecureNATOption, sizeof(VH_OPTION));
StrCpy(t->HubName, sizeof(t->HubName), h->Name);
t->ApplyDhcpPushRoutes = true; t->ApplyDhcpPushRoutes = true;
ReleaseHub(h); ReleaseHub(h);