diff options
author | 2021-08-04 05:27:57 +0200 | |
---|---|---|
committer | 2021-08-04 19:47:39 +0200 | |
commit | 19ab593ef04f5bbf5e1edf461db90836ff61fa52 (patch) | |
tree | ae337417944e580505bd388603c3b1764cb0d9cd /example/example.c | |
parent | props: tie code analysis to sdv hacks rather than debug builds (diff) | |
download | wireguard-nt-19ab593ef04f5bbf5e1edf461db90836ff61fa52.tar.xz wireguard-nt-19ab593ef04f5bbf5e1edf461db90836ff61fa52.zip |
driver: socket: use implicit CMSG_SPACE for total length, for v6
It expects to receive the total space, with padding, for the cmsg length
argument, so pad out cmsg_len to the data padding multiple, which
amounts to the same thing. This will fix IPv6 endpoints.
Reported-by: Darren VanBuren <onekopaka@theoks.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'example/example.c')
0 files changed, 0 insertions, 0 deletions