summaryrefslogtreecommitdiffstats
path: root/tests/test_echo_udp_sendto_recvfrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_echo_udp_sendto_recvfrom.c')
-rw-r--r--tests/test_echo_udp_sendto_recvfrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_echo_udp_sendto_recvfrom.c b/tests/test_echo_udp_sendto_recvfrom.c
index 4852766..f68cef9 100644
--- a/tests/test_echo_udp_sendto_recvfrom.c
+++ b/tests/test_echo_udp_sendto_recvfrom.c
@@ -50,7 +50,7 @@ static void test_sendto_recvfrom_ipv4(void **state)
sin.sin_family = AF_INET;
sin.sin_port = htons(TORTURE_ECHO_SRV_PORT);
- rc = inet_aton(TORTURE_ECHO_SRV_IPV4, &sin.sin_addr);
+ rc = inet_pton(sin.sin_family, TORTURE_ECHO_SRV_IPV4, &sin.sin_addr);
assert_int_equal(rc, 1);
for (i = 0; i < 10; i++) {