Return-Path: X-Original-To: apmail-apr-commits-archive@www.apache.org Delivered-To: apmail-apr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76F13CCF2 for ; Mon, 21 May 2012 20:39:05 +0000 (UTC) Received: (qmail 75845 invoked by uid 500); 21 May 2012 20:39:05 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 75744 invoked by uid 500); 21 May 2012 20:39:05 -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 75734 invoked by uid 99); 21 May 2012 20:39:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2012 20:39:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Mon, 21 May 2012 20:39:03 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2937423889B3 for ; Mon, 21 May 2012 20:38:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1341196 - /apr/apr/trunk/network_io/unix/sockaddr.c Date: Mon, 21 May 2012 20:38:42 -0000 To: commits@apr.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120521203842.2937423889B3@eris.apache.org> Author: sf Date: Mon May 21 20:38:41 2012 New Revision: 1341196 URL: http://svn.apache.org/viewvc?rev=1341196&view=rev Log: If we retry getaddrinfo() without AI_ADDRCONFIG, we should really only remove AI_ADDRCONFIG and not all flags. When the retry logic was added in r64571, this was equivalent because not other flags were set. But this has changed since then. Modified: apr/apr/trunk/network_io/unix/sockaddr.c Modified: apr/apr/trunk/network_io/unix/sockaddr.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sockaddr.c?rev=1341196&r1=1341195&r2=1341196&view=diff ============================================================================== --- apr/apr/trunk/network_io/unix/sockaddr.c (original) +++ apr/apr/trunk/network_io/unix/sockaddr.c Mon May 21 20:38:41 2012 @@ -365,8 +365,8 @@ static apr_status_t call_resolver(apr_so error = getaddrinfo(hostname, servname, &hints, &ai_list); #ifdef HAVE_GAI_ADDRCONFIG if (error == EAI_BADFLAGS && family == APR_UNSPEC) { - /* Retry with no flags if AI_ADDRCONFIG was rejected. */ - hints.ai_flags = 0; + /* Retry without AI_ADDRCONFIG if it was rejected. */ + hints.ai_flags &= ~AI_ADDRCONFIG; error = getaddrinfo(hostname, servname, &hints, &ai_list); } #endif