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:39 UTC
svn commit: r1004522 - /apr/apr/branches/1.4.x/test/testsock.c
Author: wrowe
Date: Tue Oct 5 04:48:38 2010
New Revision: 1004522
URL: http://svn.apache.org/viewvc?rev=1004522&view=rev
Log:
Resolve an irritating segv for those of us who deliberately
have listeners on port 8021.
Modified:
apr/apr/branches/1.4.x/test/testsock.c
Modified: apr/apr/branches/1.4.x/test/testsock.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/test/testsock.c?rev=1004522&r1=1004521&r2=1004522&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/test/testsock.c (original)
+++ apr/apr/branches/1.4.x/test/testsock.c Tue Oct 5 04:48:38 2010
@@ -333,7 +333,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",