diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2010-10-05 04:48:27 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2010-10-05 04:48:27 +0000 |
commit | 4669c22336c56135f7bc8a65602584426165392f (patch) | |
tree | dd04c601774f6eeb341a3b09c5301fd799448c6e /test/testsock.c | |
parent | da62effa6f696eddbce5b55a0fbfdff5c9601a9a (diff) | |
download | apr-4669c22336c56135f7bc8a65602584426165392f.tar.gz |
Resolve an irritating segv for those of us who deliberately
have listeners on port 8021.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1004521 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsock.c')
-rw-r--r-- | test/testsock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testsock.c b/test/testsock.c index a15dbf8d4..e115f35af 100644 --- a/test/testsock.c +++ b/test/testsock.c @@ -333,7 +333,8 @@ static void test_get_addr(abts_case *tc, void *data) 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", |