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
/
bn
/
bn_recp.c
diff --git
a/crypto/bn/bn_recp.c
b/crypto/bn/bn_recp.c
index ef1972b22788cae2adca6c46237753fbfb49557e..3ab486bf59ca82aa348a2139a9c091c6640e8dd5 100644
(file)
--- a/
crypto/bn/bn_recp.c
+++ b/
crypto/bn/bn_recp.c
@@
-71,7
+71,7
@@
BN_RECP_CTX *BN_RECP_CTX_new(void)
{
BN_RECP_CTX *ret;
- if ((ret = OPENSSL_malloc(sizeof(
BN_RECP_CTX
))) == NULL)
+ if ((ret = OPENSSL_malloc(sizeof(
*ret
))) == NULL)
return (NULL);
BN_RECP_CTX_init(ret);