You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2006/11/28 22:44:47 UTC

svn commit: r480222 - /apr/apr/branches/1.2.x/test/testsock.c

Author: wrowe
Date: Tue Nov 28 13:44:46 2006
New Revision: 480222

URL: http://svn.apache.org/viewvc?view=rev&rev=480222
Log:
Backport jorton's change to testsock.c from trunk - avoid connect()
to port 0.0.0.0, use loopback instead as the other tests do.

Modified:
    apr/apr/branches/1.2.x/test/testsock.c

Modified: apr/apr/branches/1.2.x/test/testsock.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/test/testsock.c?view=diff&rev=480222&r1=480221&r2=480222
==============================================================================
--- apr/apr/branches/1.2.x/test/testsock.c (original)
+++ apr/apr/branches/1.2.x/test/testsock.c Tue Nov 28 13:44:46 2006
@@ -79,7 +79,7 @@
     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);