summaryrefslogtreecommitdiff
path: root/test/testsock.c
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-11-27 10:50:04 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-11-27 10:50:04 +0000
commitf0bf4e18df854bd42b4f3d020762df3e8890649d (patch)
tree0aefd34ece343c6b9f7f8f1715eca0455680ef4c /test/testsock.c
parent858ba4a3e2dcb4a6b504206ba8f9b0997e3e31a3 (diff)
downloadlibapr-f0bf4e18df854bd42b4f3d020762df3e8890649d.tar.gz
* test/testsock.c (setup_socket): Bind the socket to 127.0.0.1 rather
than 0.0.0.0 since a connect() to the latter apparently doesn't work on Win32; the ./sockchild-based tests only use 127.0.0.1 anyway. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@479582 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsock.c')
-rw-r--r--test/testsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testsock.c b/test/testsock.c
index d6545f1f1..5c83d68c0 100644
--- a/test/testsock.c
+++ b/test/testsock.c
@@ -79,7 +79,7 @@ static apr_socket_t *setup_socket(abts_case *tc)
apr_sockaddr_t *sa;
apr_socket_t *sock;
- rv = apr_sockaddr_info_get(&sa, NULL, APR_INET, 8021, 0, p);
+ rv = apr_sockaddr_info_get(&sa, "127.0.0.1", APR_INET, 8021, 0, p);
APR_ASSERT_SUCCESS(tc, "Problem generating sockaddr", rv);
rv = apr_socket_create(&sock, sa->family, SOCK_STREAM, APR_PROTO_TCP, p);