]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
wintun: Compare values of GUID, not pointers, when removing
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Feb 2019 03:49:15 +0000 (04:49 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Feb 2019 03:49:15 +0000 (04:49 +0100)
tun/wintun/wintun_windows.go

index 1413c243f4d7554d2569097b71eec4132308527b..6adbb946d5be097ff0e9978e5632cf9155dea75e 100644 (file)
@@ -288,7 +288,7 @@ func (wintun *Wintun) DeleteInterface(hwndParent uintptr) (bool, bool, error) {
                        continue
                }
 
-               if ifid == ifid2 {
+               if *ifid == *ifid2 {
                        // Remove the device.
                        removeDeviceParams := setupapi.SP_REMOVEDEVICE_PARAMS{
                                ClassInstallHeader: setupapi.SP_CLASSINSTALL_HEADER{