Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 33621 invoked from network); 16 Jun 2008 23:35:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jun 2008 23:35:13 -0000 Received: (qmail 77241 invoked by uid 500); 16 Jun 2008 23:35:16 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 77192 invoked by uid 500); 16 Jun 2008 23:35:15 -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 77183 invoked by uid 99); 16 Jun 2008 23:35:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 16:35:15 -0700 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; Mon, 16 Jun 2008 23:34:34 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EBD9523889F3; Mon, 16 Jun 2008 16:34:22 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r668346 - /apr/apr-util/trunk/dbd/apr_dbd.c Date: Mon, 16 Jun 2008 23:34:22 -0000 To: commits@apr.apache.org From: bojan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080616233422.EBD9523889F3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bojan Date: Mon Jun 16 16:34:22 2008 New Revision: 668346 URL: http://svn.apache.org/viewvc?rev=668346&view=rev Log: Make sure name is copied into the pool before using it in the hash. Modified: apr/apr-util/trunk/dbd/apr_dbd.c Modified: apr/apr-util/trunk/dbd/apr_dbd.c URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd.c?rev=668346&r1=668345&r2=668346&view=diff ============================================================================== --- apr/apr-util/trunk/dbd/apr_dbd.c (original) +++ apr/apr-util/trunk/dbd/apr_dbd.c Mon Jun 16 16:34:22 2008 @@ -184,6 +184,7 @@ rv = apu_dso_load(&symbol, modname, symname, pool); if (rv != APR_SUCCESS) { /* APR_EDSOOPEN or APR_ESYMNOTFOUND? */ if (rv == APR_EINIT) { /* previously loaded?!? */ + name = apr_pstrdup(pool, name); apr_hash_set(drivers, name, APR_HASH_KEY_STRING, *driver); rv = APR_SUCCESS; }