summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509v3/v3_lib.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-21 16:08:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-21 16:08:09 +0000
commit699c265d2ad3ecd09574b8e78e83ac4f2a510111 (patch)
tree7ced25f1e05bbc1da1e56f2da6fd038cb648becf /lib/libcrypto/x509v3/v3_lib.c
parent64184e122cc4feab15308b358208d93787a48966 (diff)
no need for malloc casts
Diffstat (limited to 'lib/libcrypto/x509v3/v3_lib.c')
-rw-r--r--lib/libcrypto/x509v3/v3_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/x509v3/v3_lib.c b/lib/libcrypto/x509v3/v3_lib.c
index 0613ea7f221..8d5e6ee9116 100644
--- a/lib/libcrypto/x509v3/v3_lib.c
+++ b/lib/libcrypto/x509v3/v3_lib.c
@@ -133,7 +133,7 @@ int X509V3_EXT_add_alias(int nid_to, int nid_from)
X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,X509V3_R_EXTENSION_NOT_FOUND);
return 0;
}
- if(!(tmpext = (X509V3_EXT_METHOD *)malloc(sizeof(X509V3_EXT_METHOD)))) {
+ if(!(tmpext = malloc(sizeof(X509V3_EXT_METHOD)))) {
X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,ERR_R_MALLOC_FAILURE);
return 0;
}