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
/
evp
/
bio_ok.c
diff --git
a/crypto/evp/bio_ok.c
b/crypto/evp/bio_ok.c
index eced061447c428e732511f25a05e2be49d89a69d..9a65a9de124b3e1cc52a9bceb1c8e1e3bc632637 100644
(file)
--- a/
crypto/evp/bio_ok.c
+++ b/
crypto/evp/bio_ok.c
@@
-176,7
+176,7
@@
static int ok_new(BIO *bi)
{
BIO_OK_CTX *ctx;
- ctx = OPENSSL_malloc(sizeof(
BIO_OK_CTX
));
+ ctx = OPENSSL_malloc(sizeof(
*ctx
));
if (ctx == NULL)
return (0);