apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1619438 - /apr/apr/trunk/crypto/apr_crypto.c
Date Thu, 21 Aug 2014 15:26:35 GMT
Author: trawick
Date: Thu Aug 21 15:26:34 2014
New Revision: 1619438

URL: http://svn.apache.org/r1619438
Log:
apr_crypto_get_driver(): Fix invalid storage reference
on error path.

Submitted by: Philip Martin <philip.martin wandisco.com>
Reviewed by: trawick

Modified:
    apr/apr/trunk/crypto/apr_crypto.c

Modified: apr/apr/trunk/crypto/apr_crypto.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/crypto/apr_crypto.c?rev=1619438&r1=1619437&r2=1619438&view=diff
==============================================================================
--- apr/apr/trunk/crypto/apr_crypto.c (original)
+++ apr/apr/trunk/crypto/apr_crypto.c Thu Aug 21 15:26:34 2014
@@ -198,7 +198,7 @@ APR_DECLARE(apr_status_t) apr_crypto_get
         if (err && buffer) {
             apr_dso_error(dso, buffer, ERROR_SIZE - 1);
             err->msg = buffer;
-            err->reason = modname;
+            err->reason = apr_pstrdup(pool, modname);
             *result = err;
         }
     }



Mime
View raw message