Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sd.go: fix calculation of security descriptor length in SddlToSecurit…
…yDescriptor unsafe.Sizeof(windows.SECURITY_DESCRIPTOR{}) is the minimum length of the SD, not the actual length. Use the actual length for computing the length of the slice. This path also removes getSecurityDescriptorLength, which is no longer used. Fixes microsoft#298 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
- Loading branch information