diff options
author | Jeff Trawick <trawick@apache.org> | 2014-08-21 15:26:34 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2014-08-21 15:26:34 +0000 |
commit | f71340f2c40c29c298ee5da057fc7222c50313e0 (patch) | |
tree | 8e822c9ad5bdef4440104022697494c616cb86ab /crypto | |
parent | cc99c928b6d6fbdc20866e121544255cea64f7e7 (diff) | |
download | apr-f71340f2c40c29c298ee5da057fc7222c50313e0.tar.gz |
apr_crypto_get_driver(): Fix invalid storage reference
on error path.
Submitted by: Philip Martin <philip.martin wandisco.com>
Reviewed by: trawick
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1619438 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/apr_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/apr_crypto.c b/crypto/apr_crypto.c index 2633c0406..52930c166 100644 --- a/crypto/apr_crypto.c +++ b/crypto/apr_crypto.c @@ -198,7 +198,7 @@ APR_DECLARE(apr_status_t) apr_crypto_get_driver( 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; } } |