From b0a2a95540fa8c5a95a8231a6be73d218195e854 Mon Sep 17 00:00:00 2001 From: hoppler Date: Sat, 30 Jun 2018 10:51:49 +0200 Subject: [PATCH] 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 --- src/Cedar/Admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Admin.c b/src/Cedar/Admin.c index 82fc6f2a..3c72a77f 100644 --- a/src/Cedar/Admin.c +++ b/src/Cedar/Admin.c @@ -7392,8 +7392,8 @@ UINT StGetSecureNATOption(ADMIN *a, VH_OPTION *t) } Zero(t, sizeof(VH_OPTION)); - StrCpy(t->HubName, sizeof(t->HubName), hubname); Copy(t, h->SecureNATOption, sizeof(VH_OPTION)); + StrCpy(t->HubName, sizeof(t->HubName), h->Name); t->ApplyDhcpPushRoutes = true; ReleaseHub(h);