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
/
rsa
/
rsa_pmeth.c
diff --git
a/crypto/rsa/rsa_pmeth.c
b/crypto/rsa/rsa_pmeth.c
index 94dc40881dbfee1a311988047ff7bfe4b029750c..e407671cb7ddd88db5e9cb2935c5c8913deca601 100644
(file)
--- a/
crypto/rsa/rsa_pmeth.c
+++ b/
crypto/rsa/rsa_pmeth.c
@@
-97,7
+97,7
@@
typedef struct {
static int pkey_rsa_init(EVP_PKEY_CTX *ctx)
{
RSA_PKEY_CTX *rctx;
- rctx = OPENSSL_malloc(sizeof(
RSA_PKEY_CTX
));
+ rctx = OPENSSL_malloc(sizeof(
*rctx
));
if (!rctx)
return 0;
rctx->nbits = 1024;