From d12eb91f9a309a30dd78e89ff71050842d4a4e6e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 5 Sep 2019 21:48:21 -0600 Subject: namespaceapi: AddSIDToBoundaryDescriptor modifies the handle --- tun/wintun/namespaceapi/namespaceapi_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tun') 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?! -- cgit v1.2.3