1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-04-23 07:19:26 +03:00

Fix memory overrun in policy copy

This commit is contained in:
Yihong Wu
2021-09-30 19:36:36 +08:00
parent 462ebfb960
commit 2990b5ae93
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ void OverwritePolicy(POLICY **target, POLICY *p)
}
else
{
Copy(*target, p, NUM_POLICY_ITEM_FOR_VER2 * sizeof(UINT));
Copy(*target, p, policy_item[NUM_POLICY_ITEM_FOR_VER2].Offset);
}
}
}