diff options
author | 2021-10-19 12:33:07 -0600 | |
---|---|---|
committer | 2021-10-19 12:33:07 -0600 | |
commit | f394d011c31fd34c086ac3760dffbea635da54fe (patch) | |
tree | b2fa82351d76989e7cb9bbc0fc54ad38ba117f13 /driver/ioctl.c | |
parent | version: bump (diff) | |
download | wireguard-nt-f394d011c31fd34c086ac3760dffbea635da54fe.tar.xz wireguard-nt-f394d011c31fd34c086ac3760dffbea635da54fe.zip |
driver: PEER_UPDATE is supposed to be UPDATE_ONLY
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'driver/ioctl.c')
-rw-r--r-- | driver/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/ioctl.c b/driver/ioctl.c index 061be2a..abd7637 100644 --- a/driver/ioctl.c +++ b/driver/ioctl.c @@ -286,7 +286,7 @@ SetPeer(_Inout_ WG_DEVICE *Wg, _Inout_ CONST volatile WG_IOCTL_PEER **UnsafeIoct if (!Peer) { /* Peer doesn't exist yet. Add a new one. */ - if (IoctlPeer.Flags & (WG_IOCTL_PEER_REMOVE | WG_IOCTL_PEER_UPDATE)) + if (IoctlPeer.Flags & (WG_IOCTL_PEER_REMOVE | WG_IOCTL_PEER_UPDATE_ONLY)) goto cleanupStack; /* The peer is new, so there aren't allowed IPs to remove. */ |