projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use safer sizeof variant in malloc
[openssl.git]
/
crypto
/
dso
/
dso_vms.c
diff --git
a/crypto/dso/dso_vms.c
b/crypto/dso/dso_vms.c
index 821e238bd441acfd4fc1973f065958db4e886b9e..07ec1cd30b5950e5622d3a1b1a651edb3fac7697 100644
(file)
--- a/
crypto/dso/dso_vms.c
+++ b/
crypto/dso/dso_vms.c
@@
-230,7
+230,7
@@
static int vms_load(DSO *dso)
goto err;
}
- p = DSO_MALLOC(sizeof(
DSO_VMS_INTERNAL
));
+ p = DSO_MALLOC(sizeof(
*p
));
if (p == NULL) {
DSOerr(DSO_F_VMS_LOAD, ERR_R_MALLOC_FAILURE);
goto err;