summaryrefslogtreecommitdiff
path: root/dso/unix/dso.c
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-06-06 00:57:08 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-06-06 00:57:08 +0000
commitcf8a5c5f502046ecb21ef3d04dee101607e5bee5 (patch)
tree3ad57a41a6a9821d28bc427440833b19e8dfe305 /dso/unix/dso.c
parentaad1e0f3cf5acbd035ca9b234a1403455a5ac5ec (diff)
downloadlibapr-cf8a5c5f502046ecb21ef3d04dee101607e5bee5.tar.gz
Fix bad call to ap_pcalloc() in ap_dso_load(); the bug led to a storage
overlay as not enough storage was allocated for the ap_dso_handle_t. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60145 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/unix/dso.c')
-rw-r--r--dso/unix/dso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c
index 2ed08958a..d6c01c86a 100644
--- a/dso/unix/dso.c
+++ b/dso/unix/dso.c
@@ -82,7 +82,7 @@ ap_status_t ap_dso_load(ap_dso_handle_t **res_handle, const char *path,
#endif
}
- *res_handle = ap_pcalloc(ctx, sizeof(*res_handle));
+ *res_handle = ap_pcalloc(ctx, sizeof(**res_handle));
(*res_handle)->handle = (void*)os_handle;
(*res_handle)->cont = ctx;
(*res_handle)->errormsg = NULL;