summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/main.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-04 17:17:35 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-04 14:25:14 -0700
commit811b00a6c8bf01cb2b06ce54294394d64c8ed814 (patch)
tree2cfa02c00f4f6dd869c19386ef321e177e0442c7 /drivers/net/wireguard/main.c
parentb284d5a787433ec50a222ebcceed6256f4ca3274 (diff)
downloadwireguard-linux-trimmed-811b00a6c8bf01cb2b06ce54294394d64c8ed814.tar.gz
wireguard-linux-trimmed-811b00a6c8bf01cb2b06ce54294394d64c8ed814.zip
wireguard: allowedips: initialize list head in selftest
The randomized trie tests weren't initializing the dummy peer list head, resulting in a NULL pointer dereference when used. Fix this by initializing it in the randomized trie test, just like we do for the static unit test. While we're at it, all of the other strings like this have the word "self-test", so add it to the missing place here. Fixes: a8f1bc7bdea3 ("net: WireGuard secure network tunnel") Cc: stable@vger.kernel.org Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireguard/main.c')
0 files changed, 0 insertions, 0 deletions