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
/
asn1
/
tasn_scn.c
diff --git
a/crypto/asn1/tasn_scn.c
b/crypto/asn1/tasn_scn.c
index cedea9cb78e378cb135472f6a7745bf61ad731c9..43a125cb55a7e81e89b68e88d723e12697aaf787 100644
(file)
--- a/
crypto/asn1/tasn_scn.c
+++ b/
crypto/asn1/tasn_scn.c
@@
-75,7
+75,7
@@
ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx))
{
ASN1_SCTX *ret;
- ret = OPENSSL_malloc(sizeof(
ASN1_SCTX
));
+ ret = OPENSSL_malloc(sizeof(
*ret
));
if (ret == NULL) {
ASN1err(ASN1_F_ASN1_SCTX_NEW, ERR_R_MALLOC_FAILURE);
return NULL;