mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 14:06:54 +02:00
wintun: use correct length for security attributes
This commit is contained in:
parent
bb0b2514c0
commit
70f6c42556
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ func initializeNamespace() error {
|
|||
return fmt.Errorf("SddlToSecurityDescriptor failed: %v", err)
|
||||
}
|
||||
wintunObjectSecurityAttributes = &windows.SecurityAttributes{
|
||||
Length: uint32(len(sd)),
|
||||
Length: uint32(unsafe.Sizeof(windows.SecurityAttributes{})),
|
||||
SecurityDescriptor: uintptr(unsafe.Pointer(&sd[0])),
|
||||
}
|
||||
sid, err := windows.CreateWellKnownSid(windows.WinLocalSystemSid)
|
||||
|
|
Loading…
Add table
Reference in a new issue