]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: fix alignment of peer stats member
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 22 Dec 2020 20:34:21 +0000 (21:34 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Jan 2021 13:49:44 +0000 (14:49 +0100)
commit25b01723ddc8bcd2993eb4b21e4e61164f55fa95
tree083f2e5d6772d790996a1465e9cee28bbc1add99
parent40dfc85defd8d47b9d371becc36796d6edc43d05
device: fix alignment of peer stats member

This was shifted by 2 bytes when making persistent keepalive into a u32.
Fix it by placing it after the aligned region.

Fixes: e739ff7 ("device: fix persistent_keepalive_interval data races")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/peer.go