apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1004521 - /apr/apr/branches/1.5.x/test/testsock.c
Date Tue, 05 Oct 2010 04:48:27 GMT
Author: wrowe
Date: Tue Oct  5 04:48:27 2010
New Revision: 1004521

URL: http://svn.apache.org/viewvc?rev=1004521&view=rev
Log:
Resolve an irritating segv for those of us who deliberately
have listeners on port 8021.

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

Modified: apr/apr/branches/1.5.x/test/testsock.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/test/testsock.c?rev=1004521&r1=1004520&r2=1004521&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/test/testsock.c (original)
+++ apr/apr/branches/1.5.x/test/testsock.c Tue Oct  5 04:48:27 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",



Mime
View raw message