summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/dsa/dsa_lib.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-06-07 14:41:56 +0000
committerderaadt <deraadt@openbsd.org>2014-06-07 14:41:56 +0000
commit4163340b499b485e883e0fa2e5cb8184fd8c0a18 (patch)
tree0c44f8a082e5dc6c4f9d0af733243d1a96651790 /lib/libcrypto/dsa/dsa_lib.c
parentRemove another NULL check before a BIO_free(). (diff)
downloadwireguard-openbsd-4163340b499b485e883e0fa2e5cb8184fd8c0a18.tar.xz
wireguard-openbsd-4163340b499b485e883e0fa2e5cb8184fd8c0a18.zip
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'lib/libcrypto/dsa/dsa_lib.c')
-rw-r--r--lib/libcrypto/dsa/dsa_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/dsa/dsa_lib.c b/lib/libcrypto/dsa/dsa_lib.c
index 7c7cd608834..002d64665a0 100644
--- a/lib/libcrypto/dsa/dsa_lib.c
+++ b/lib/libcrypto/dsa/dsa_lib.c
@@ -116,7 +116,7 @@ DSA *DSA_new_method(ENGINE *engine)
{
DSA *ret;
- ret=(DSA *)malloc(sizeof(DSA));
+ ret = malloc(sizeof(DSA));
if (ret == NULL)
{
DSAerr(DSA_F_DSA_NEW_METHOD,ERR_R_MALLOC_FAILURE);