diff options
author | 2014-06-07 14:41:56 +0000 | |
---|---|---|
committer | 2014-06-07 14:41:56 +0000 | |
commit | 4163340b499b485e883e0fa2e5cb8184fd8c0a18 (patch) | |
tree | 0c44f8a082e5dc6c4f9d0af733243d1a96651790 /lib/libcrypto/evp/p_lib.c | |
parent | Remove another NULL check before a BIO_free(). (diff) | |
download | wireguard-openbsd-4163340b499b485e883e0fa2e5cb8184fd8c0a18.tar.xz wireguard-openbsd-4163340b499b485e883e0fa2e5cb8184fd8c0a18.zip |
malloc() result does not need a cast.
ok miod
Diffstat (limited to 'lib/libcrypto/evp/p_lib.c')
-rw-r--r-- | lib/libcrypto/evp/p_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/evp/p_lib.c b/lib/libcrypto/evp/p_lib.c index 97d922d1bab..b13163b26f1 100644 --- a/lib/libcrypto/evp/p_lib.c +++ b/lib/libcrypto/evp/p_lib.c @@ -188,7 +188,7 @@ EVP_PKEY_new(void) { EVP_PKEY *ret; - ret = (EVP_PKEY *)malloc(sizeof(EVP_PKEY)); + ret = malloc(sizeof(EVP_PKEY)); if (ret == NULL) { EVPerr(EVP_F_EVP_PKEY_NEW, ERR_R_MALLOC_FAILURE); return (NULL); |