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
/
hmac
/
hm_pmeth.c
diff --git
a/crypto/hmac/hm_pmeth.c
b/crypto/hmac/hm_pmeth.c
index f53f78c8984f06417b3b5e1019712bf59d2ae619..845a72b2ebf2e641a1ce72a77341fcbb2fbae341 100644
(file)
--- a/
crypto/hmac/hm_pmeth.c
+++ b/
crypto/hmac/hm_pmeth.c
@@
-75,7
+75,7
@@
typedef struct {
static int pkey_hmac_init(EVP_PKEY_CTX *ctx)
{
HMAC_PKEY_CTX *hctx;
- hctx = OPENSSL_malloc(sizeof(
HMAC_PKEY_CTX
));
+ hctx = OPENSSL_malloc(sizeof(
*hctx
));
if (!hctx)
return 0;
hctx->md = NULL;