Skip to content
Commit d64479a3 authored by Wei Wang's avatar Wei Wang Committed by David S. Miller
Browse files

selftests: net: reuseport_dualstack: fix uninitalized parameter

This test reports EINVAL for getsockopt(SOL_SOCKET, SO_DOMAIN)
occasionally due to the uninitialized length parameter.
Initialize it to fix this, and also use int for "test_family" to comply
with the API standard.

Fixes: d6a61f80

 ("soreuseport: test mixed v4/v6 sockets")
Reported-by: default avatarMaciej Żenczykowski <maze@google.com>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarWei Wang <weiwan@google.com>
Cc: Craig Gallek <cgallek@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 62bdc8fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment