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 2010/10/05 06:48:45 UTC
svn commit: r1004523 - /apr/apr/branches/1.3.x/test/testsock.c
Author: wrowe
Date: Tue Oct 5 04:48:45 2010
New Revision: 1004523
URL: http://svn.apache.org/viewvc?rev=1004523&view=rev
Log:
Resolve an irritating segv for those of us who deliberately
have listeners on port 8021.
Modified:
apr/apr/branches/1.3.x/test/testsock.c
Modified: apr/apr/branches/1.3.x/test/testsock.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/test/testsock.c?rev=1004523&r1=1004522&r2=1004523&view=diff
==============================================================================
--- apr/apr/branches/1.3.x/test/testsock.c (original)
+++ apr/apr/branches/1.3.x/test/testsock.c Tue Oct 5 04:48:45 2010
@@ -272,7 +272,8 @@ static void test_get_addr(abts_case *tc,
APR_ASSERT_SUCCESS(tc, "create subpool", apr_pool_create(&subp, p));
- ld = setup_socket(tc);
+ if ((ld = setup_socket(tc)) != APR_SUCCESS)
+ return;
APR_ASSERT_SUCCESS(tc,
"get local address of bound socket",