apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r668348 - /apr/apr-util/branches/1.3.x/dbd/apr_dbd.c
Date Mon, 16 Jun 2008 23:39:48 GMT
Author: bojan
Date: Mon Jun 16 16:39:48 2008
New Revision: 668348

URL: http://svn.apache.org/viewvc?rev=668348&view=rev
Log:
Backport r668346 from the trunk.
Make sure name is copied into the pool memory before being used in the hash.

Modified:
    apr/apr-util/branches/1.3.x/dbd/apr_dbd.c

Modified: apr/apr-util/branches/1.3.x/dbd/apr_dbd.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/dbd/apr_dbd.c?rev=668348&r1=668347&r2=668348&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/dbd/apr_dbd.c (original)
+++ apr/apr-util/branches/1.3.x/dbd/apr_dbd.c Mon Jun 16 16:39:48 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;
         }



Mime
View raw message