diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-05 21:48:21 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-05 21:48:21 -0600 |
commit | d12eb91f9a309a30dd78e89ff71050842d4a4e6e (patch) | |
tree | 9dd1f2ac212f5f2e233504c421911f1a9a21bcca /tun | |
parent | 73d3bd9cd5e425c7422084172e63ed2eaa87d8ec (diff) |
namespaceapi: AddSIDToBoundaryDescriptor modifies the handle
Diffstat (limited to 'tun')
-rw-r--r-- | tun/wintun/namespaceapi/namespaceapi_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/wintun/namespaceapi/namespaceapi_windows.go b/tun/wintun/namespaceapi/namespaceapi_windows.go index ad73df2..ef75302 100644 --- a/tun/wintun/namespaceapi/namespaceapi_windows.go +++ b/tun/wintun/namespaceapi/namespaceapi_windows.go @@ -36,8 +36,8 @@ func (bd BoundaryDescriptor) Delete() { } // AddSid adds a security identifier (SID) to the specified boundary descriptor. -func (bd BoundaryDescriptor) AddSid(requiredSid *windows.SID) error { - return addSIDToBoundaryDescriptor((*windows.Handle)(&bd), requiredSid) +func (bd *BoundaryDescriptor) AddSid(requiredSid *windows.SID) error { + return addSIDToBoundaryDescriptor((*windows.Handle)(bd), requiredSid) } // PrivateNamespace represents a private namespace. Duh?! |