Message ID | 20240413-tcp-ao-selftests-fixes-v1-2-f9c41c96949d@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b089b3bead532419cdcbd8e4e0a3e23c49d11573 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | selftests/net/tcp_ao: A bunch of fixes for TCP-AO selftests | expand |
diff --git a/tools/testing/selftests/net/tcp_ao/setsockopt-closed.c b/tools/testing/selftests/net/tcp_ao/setsockopt-closed.c index 452de131fa3a..517930f9721b 100644 --- a/tools/testing/selftests/net/tcp_ao/setsockopt-closed.c +++ b/tools/testing/selftests/net/tcp_ao/setsockopt-closed.c @@ -21,7 +21,7 @@ static void make_listen(int sk) static void test_vefify_ao_info(int sk, struct tcp_ao_info_opt *info, const char *tst) { - struct tcp_ao_info_opt tmp; + struct tcp_ao_info_opt tmp = {}; socklen_t len = sizeof(tmp); if (getsockopt(sk, IPPROTO_TCP, TCP_AO_INFO, &tmp, &len))