apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1004523 - /apr/apr/branches/1.3.x/test/testsock.c
Date Tue, 05 Oct 2010 04:48:45 GMT
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",



Mime
View raw message