aboutsummaryrefslogtreecommitdiffstats
path: root/driver/socket.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-12-11 15:51:04 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2023-12-11 15:08:55 +0000
commitcbf27645083b25caf9dd0c4d6b07163a10c3841d (patch)
treeb3d2dbb04e047e332435a8c4b3ee06819dd0b058 /driver/socket.c
parentapi: header: add C++ enum manipulation operators (diff)
downloadwireguard-nt-master.tar.xz
wireguard-nt-master.zip
driver: allowedips: expand maximum node depthHEADmaster
In the allowedips self-test, nodes are inserted into the tree, but it generated an even amount of nodes, but for checking maximum node depth, there is of course the root node, which makes the total number necessarily odd. With two few nodes added, it never triggered the maximum depth check like it should have. So, add 129 nodes instead of 128 nodes, and do so with a more straightforward scheme, starting with all the bits set, and shifting over one each time. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'driver/socket.c')
0 files changed, 0 insertions, 0 deletions