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:27 UTC

svn commit: r1004521 - /apr/apr/branches/1.5.x/test/testsock.c

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",