]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
conn: fix getSrcFromControl() iteration
authorJordan Whited <jordan@tailscale.com>
Wed, 15 Mar 2023 03:28:07 +0000 (20:28 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 16 Mar 2023 16:45:41 +0000 (17:45 +0100)
commit07a1e55270bd34ee526ad328d597fa01a8e17619
tree4f4ca5ed6665af1e2432f9b382d274bc968847a3
parentfff53afca779078061128a5a10c31e67a7919d35
conn: fix getSrcFromControl() iteration

We only expect a single control message in the normal case, but this
would loop infinitely if there were more.

Reviewed-by: Adrian Dewhurst <adrian@tailscale.com>
Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
conn/sticky_linux.go
conn/sticky_linux_test.go