summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/evp/p_open.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/libssl/src/crypto/evp/p_open.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/libssl/src/crypto/evp/p_open.c')
-rw-r--r--lib/libssl/src/crypto/evp/p_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/evp/p_open.c b/lib/libssl/src/crypto/evp/p_open.c
index 88c0a455443..c10d7959c38 100644
--- a/lib/libssl/src/crypto/evp/p_open.c
+++ b/lib/libssl/src/crypto/evp/p_open.c
@@ -88,7 +88,7 @@ EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,
}
size = RSA_size(priv->pkey.rsa);
- key = (unsigned char *)malloc(size + 2);
+ key = malloc(size + 2);
if (key == NULL) {
/* ERROR */
EVPerr(EVP_F_EVP_OPENINIT, ERR_R_MALLOC_FAILURE);