aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libntp/netof.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2020-06-24 00:20:45 +0000
committerCy Schubert <cy@FreeBSD.org>2020-06-24 00:20:45 +0000
commit3914721463f70500ecc1f59312b122d8788465cf (patch)
treef253e72838d762e229ca71912a4a928e96cac2bd /tests/libntp/netof.c
parent5171bc9b11192d9ad273db7854787eaa65eb9997 (diff)
downloadsrc-vendor/ntp.tar.gz
src-vendor/ntp.zip
Import ntp-4.2.8p15.vendor/ntp/4.2.8p15vendor/ntp
Security: ntp bug 3661
Notes
Notes: svn path=/vendor/ntp/dist/; revision=362565 svn path=/vendor/ntp/4.2.8p15/; revision=362566; tag=vendor/ntp/4.2.8p15
Diffstat (limited to 'tests/libntp/netof.c')
-rw-r--r--tests/libntp/netof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libntp/netof.c b/tests/libntp/netof.c
index 59dd7098d2a7..be197cf18b8a 100644
--- a/tests/libntp/netof.c
+++ b/tests/libntp/netof.c
@@ -89,11 +89,13 @@ test_IPv6Address(void)
} } }; // 2001:0db8:85a3:08d3:0000:0000:0000:0000
sockaddr_u input;
+ memset(&input, 0, sizeof(input));
input.sa6.sin6_family = AF_INET6;
input.sa6.sin6_addr = input_address;
SET_PORT(&input, 3000);
sockaddr_u expected;
+ memset(&expected, 0, sizeof(expected));
expected.sa6.sin6_family = AF_INET6;
expected.sa6.sin6_addr = expected_address;
SET_PORT(&expected, 3000);