apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r480222 - /apr/apr/branches/1.2.x/test/testsock.c
Date Tue, 28 Nov 2006 21:44:47 GMT
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);



Mime
View raw message