diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_lib.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_lib.c b/src/lib/libcrypto/x509v3/v3_lib.c index 0f1e1d4422..0613ea7f22 100644 --- a/src/lib/libcrypto/x509v3/v3_lib.c +++ b/src/lib/libcrypto/x509v3/v3_lib.c | |||
@@ -133,7 +133,7 @@ int X509V3_EXT_add_alias(int nid_to, int nid_from) | |||
133 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,X509V3_R_EXTENSION_NOT_FOUND); | 133 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,X509V3_R_EXTENSION_NOT_FOUND); |
134 | return 0; | 134 | return 0; |
135 | } | 135 | } |
136 | if(!(tmpext = (X509V3_EXT_METHOD *)OPENSSL_malloc(sizeof(X509V3_EXT_METHOD)))) { | 136 | if(!(tmpext = (X509V3_EXT_METHOD *)malloc(sizeof(X509V3_EXT_METHOD)))) { |
137 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,ERR_R_MALLOC_FAILURE); | 137 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,ERR_R_MALLOC_FAILURE); |
138 | return 0; | 138 | return 0; |
139 | } | 139 | } |
@@ -151,7 +151,7 @@ void X509V3_EXT_cleanup(void) | |||
151 | 151 | ||
152 | static void ext_list_free(X509V3_EXT_METHOD *ext) | 152 | static void ext_list_free(X509V3_EXT_METHOD *ext) |
153 | { | 153 | { |
154 | if(ext->ext_flags & X509V3_EXT_DYNAMIC) OPENSSL_free(ext); | 154 | if(ext->ext_flags & X509V3_EXT_DYNAMIC) free(ext); |
155 | } | 155 | } |
156 | 156 | ||
157 | /* Legacy function: we don't need to add standard extensions | 157 | /* Legacy function: we don't need to add standard extensions |