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
/
ts
/
ts_rsp_sign.c
diff --git
a/crypto/ts/ts_rsp_sign.c
b/crypto/ts/ts_rsp_sign.c
index 58068cf37e64ca285f0a7aec5649af68b67637db..2d1e4388331d3998cafbadd2b58b6ad3f0174131 100644
(file)
--- a/
crypto/ts/ts_rsp_sign.c
+++ b/
crypto/ts/ts_rsp_sign.c
@@
-169,7
+169,7
@@
TS_RESP_CTX *TS_RESP_CTX_new()
{
TS_RESP_CTX *ctx;
- if (!(ctx = OPENSSL_malloc(sizeof(
TS_RESP_CTX
)))) {
+ if (!(ctx = OPENSSL_malloc(sizeof(
*ctx
)))) {
TSerr(TS_F_TS_RESP_CTX_NEW, ERR_R_MALLOC_FAILURE);
return NULL;
}