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

Merge PR #566: HubName has to be set after Copy

This commit is contained in:
Davide Beatrici 2018-07-21 05:11:05 +02:00 committed by GitHub
commit 4b58f3f2e4
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);