projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove malloc casts
[openssl.git]
/
crypto
/
dh
/
dh_lib.c
diff --git
a/crypto/dh/dh_lib.c
b/crypto/dh/dh_lib.c
index 4f07a277ea73c474d0cab6aa7500c62875dc3b28..68a54a6fd268ab0cdbe05f19280ebd45dd789fc1 100644
(file)
--- a/
crypto/dh/dh_lib.c
+++ b/
crypto/dh/dh_lib.c
@@
-109,9
+109,8
@@
DH *DH_new(void)
DH *DH_new_method(ENGINE *engine)
{
- DH *ret;
+ DH *ret
= OPENSSL_malloc(sizeof(DH))
;
- ret = (DH *)OPENSSL_malloc(sizeof(DH));
if (ret == NULL) {
DHerr(DH_F_DH_NEW_METHOD, ERR_R_MALLOC_FAILURE);
return (NULL);