selftest: tcp: Fix address length in bind_wildcard.c.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 11 Sep 2023 18:36:58 +0000 (11:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Sep 2023 06:18:04 +0000 (07:18 +0100)
commit0071d15517b4a3d265abc00395beb1138e7236c7
treebde66fb6dca2b65778797a777145c0e28bd0ba1c
parentc48ef9c4aed3632566b57ba66cec6ec78624d4cb
selftest: tcp: Fix address length in bind_wildcard.c.

The selftest passes the IPv6 address length for an IPv4 address.
We should pass the correct length.

Note inet_bind_sk() does not check if the size is larger than
sizeof(struct sockaddr_in), so there is no real bug in this
selftest.

Fixes: 13715acf8ab5 ("selftest: Add test for bind() conflicts.")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/bind_wildcard.c