summaryrefslogtreecommitdiff
path: root/src/libstrongswan/tests/test_host.c
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2013-11-01 13:32:07 +0100
committerYves-Alexis Perez <corsac@debian.org>2013-11-01 13:32:07 +0100
commita54780509260a8cb6f0344f531da168b34410dd5 (patch)
tree477239a312679174252f39f7a80bc8bf33836d9a /src/libstrongswan/tests/test_host.c
parent6e50941f7ce9c6f2d6888412968c7f4ffb495379 (diff)
parent5313d2d78ca150515f7f5eb39801c100690b6b29 (diff)
downloadvyos-strongswan-a54780509260a8cb6f0344f531da168b34410dd5.tar.gz
vyos-strongswan-a54780509260a8cb6f0344f531da168b34410dd5.zip
Merge tag 'upstream/5.1.1'
Upstream version 5.1.1
Diffstat (limited to 'src/libstrongswan/tests/test_host.c')
-rw-r--r--src/libstrongswan/tests/test_host.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/tests/test_host.c b/src/libstrongswan/tests/test_host.c
index 1a68ffc50..30b9eb940 100644
--- a/src/libstrongswan/tests/test_host.c
+++ b/src/libstrongswan/tests/test_host.c
@@ -243,6 +243,9 @@ END_TEST
START_TEST(test_create_from_sockaddr_v4)
{
struct sockaddr_in addr = {
+#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
+ .sin_len = sizeof(struct sockaddr_in),
+#endif
.sin_family = AF_INET,
.sin_port = htons(500),
}, *val;
@@ -262,6 +265,9 @@ END_TEST
START_TEST(test_create_from_sockaddr_v6)
{
struct sockaddr_in6 addr = {
+#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
+ .sin6_len = sizeof(struct sockaddr_in6),
+#endif
.sin6_family = AF_INET6,
.sin6_port = htons(500),
}, *val;