Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 50104 invoked from network); 5 Oct 2010 04:48:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 04:48:53 -0000 Received: (qmail 83587 invoked by uid 500); 5 Oct 2010 04:48:53 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 83496 invoked by uid 500); 5 Oct 2010 04:48:51 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 83486 invoked by uid 99); 5 Oct 2010 04:48:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 04:48:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 04:48:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B1567238899C; Tue, 5 Oct 2010 04:48:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1004521 - /apr/apr/branches/1.5.x/test/testsock.c Date: Tue, 05 Oct 2010 04:48:27 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101005044827.B1567238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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",