diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-03 12:52:55 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-03 12:54:25 +0200 |
commit | 4bd8a2416920692e11473745e50d8122e6a22475 (patch) | |
tree | af02b0419f50e596cce60134bb8c40ae37280364 | |
parent | driver: socket: flip mask around on route lookup (diff) | |
download | wireguard-nt-4bd8a2416920692e11473745e50d8122e6a22475.tar.xz wireguard-nt-4bd8a2416920692e11473745e50d8122e6a22475.zip |
driver: socket: increment local endpoint update generation
Otherwise we wind up retrying and doing the routing generation
comparison at the top needlessly.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | driver/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/socket.c b/driver/socket.c index c0e6660..36c310b 100644 --- a/driver/socket.c +++ b/driver/socket.c @@ -319,7 +319,7 @@ retry: } else BestIndex = 0; - ++Endpoint->UpdateGeneration; + ++Endpoint->UpdateGeneration, ++UpdateGeneration; ExReleaseSpinLockExclusive(&Peer->EndpointLock, *Irql); if (!BestIndex) return STATUS_BAD_NETWORK_PATH; |