diff options
author | Jeff Trawick <trawick@apache.org> | 2007-11-08 14:28:50 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2007-11-08 14:28:50 +0000 |
commit | d5360b1f8b1ead1981d3fc6b593b9ea29b1cd2a6 (patch) | |
tree | 63bc3f28b59593e6e3f5deb220f46820b84c300f /dso | |
parent | ed563bf6057e6c7a9b7baee072565efa3145d980 (diff) | |
download | apr-d5360b1f8b1ead1981d3fc6b593b9ea29b1cd2a6.tar.gz |
Fix DSO-related crash on z/OS caused by incorrect memory
allocation.
Submitted by: David Jones <oscaremma gmail.com>
Reviewed by: trawick
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@593166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r-- | dso/os390/dso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dso/os390/dso.c b/dso/os390/dso.c index 293d0653e..034ffe843 100644 --- a/dso/os390/dso.c +++ b/dso/os390/dso.c @@ -63,7 +63,7 @@ APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle, dllhandle *handle; int rc; - *res_handle = apr_pcalloc(ctx, sizeof(*res_handle)); + *res_handle = apr_pcalloc(ctx, sizeof(**res_handle)); (*res_handle)->pool = ctx; if ((handle = dllload(path)) != NULL) { (*res_handle)->handle = handle; |