Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 69304 invoked from network); 1 Aug 2006 09:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 09:46:24 -0000 Received: (qmail 98867 invoked by uid 500); 1 Aug 2006 09:46:23 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 98808 invoked by uid 500); 1 Aug 2006 09:46:22 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 98797 invoked by uid 99); 1 Aug 2006 09:46:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 02:46:22 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 02:46:22 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id E04CE1A981A; Tue, 1 Aug 2006 02:46:01 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r427505 - /httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c Date: Tue, 01 Aug 2006 09:46:01 -0000 To: cvs@httpd.apache.org From: jfclere@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060801094601.E04CE1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jfclere Date: Tue Aug 1 02:46:00 2006 New Revision: 427505 URL: http://svn.apache.org/viewvc?rev=427505&view=rev Log: create and attach cannot be used before the globalmem has been initialized. Modified: httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c Modified: httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c?rev=427505&r1=427504&r2=427505&view=diff ============================================================================== --- httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c (original) +++ httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c Tue Aug 1 02:46:00 2006 @@ -90,6 +90,8 @@ const char *fname; apr_status_t rv; + if (globalpool == NULL) + return APR_ENOSHMAVAIL; if (name) { if (name[0] == ':') fname = name; @@ -173,6 +175,8 @@ const char *fname; apr_status_t rv; + if (globalpool == NULL) + return APR_ENOSHMAVAIL; if (name) { if (name[0] == ':') fname = name;