]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: make unmarshall length checks exact
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 15 May 2025 14:48:14 +0000 (16:48 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 15 May 2025 14:48:14 +0000 (16:48 +0200)
commit842888ac5c93ccc5ee6344eceaadf783fcf1e243
tree607e0f9c600dece9211b011a6bdcaffa45c3c0e9
parent9e7529c3d2d0c54f4d5384c01645a9279e4740ae
device: make unmarshall length checks exact

This is already enforced in receive.go, but if these unmarshallers are
to have error return values anyway, make them as explicit as possible.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/noise-protocol.go