projects
/
oweals
/
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
[oweals/openssl.git]
/
crypto
/
txt_db
/
txt_db.c
diff --git
a/crypto/txt_db/txt_db.c
b/crypto/txt_db/txt_db.c
index 49d8ccc2469618b5ed578a7c95f89255ee03cec5..54c85d2245dce2970370d80a324b3b931c374af8 100644
(file)
--- a/
crypto/txt_db/txt_db.c
+++ b/
crypto/txt_db/txt_db.c
@@
-85,7
+85,7
@@
TXT_DB *TXT_DB_read(BIO *in, int num)
if (!BUF_MEM_grow(buf, size))
goto err;
- if ((ret = OPENSSL_malloc(sizeof(
TXT_DB
))) == NULL)
+ if ((ret = OPENSSL_malloc(sizeof(
*ret
))) == NULL)
goto err;
ret->num_fields = num;
ret->index = NULL;