diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index a82c2872e0..077bfd8f2d 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
@@ -1986,7 +1986,7 @@ int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, | |||
1986 | X509_STORE_CTX *X509_STORE_CTX_new(void) | 1986 | X509_STORE_CTX *X509_STORE_CTX_new(void) |
1987 | { | 1987 | { |
1988 | X509_STORE_CTX *ctx; | 1988 | X509_STORE_CTX *ctx; |
1989 | ctx = (X509_STORE_CTX *)OPENSSL_malloc(sizeof(X509_STORE_CTX)); | 1989 | ctx = (X509_STORE_CTX *)malloc(sizeof(X509_STORE_CTX)); |
1990 | if (!ctx) | 1990 | if (!ctx) |
1991 | { | 1991 | { |
1992 | X509err(X509_F_X509_STORE_CTX_NEW,ERR_R_MALLOC_FAILURE); | 1992 | X509err(X509_F_X509_STORE_CTX_NEW,ERR_R_MALLOC_FAILURE); |
@@ -1999,7 +1999,7 @@ X509_STORE_CTX *X509_STORE_CTX_new(void) | |||
1999 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx) | 1999 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx) |
2000 | { | 2000 | { |
2001 | X509_STORE_CTX_cleanup(ctx); | 2001 | X509_STORE_CTX_cleanup(ctx); |
2002 | OPENSSL_free(ctx); | 2002 | free(ctx); |
2003 | } | 2003 | } |
2004 | 2004 | ||
2005 | int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, | 2005 | int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, |
@@ -2122,7 +2122,7 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, | |||
2122 | if(!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE_CTX, ctx, | 2122 | if(!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE_CTX, ctx, |
2123 | &(ctx->ex_data))) | 2123 | &(ctx->ex_data))) |
2124 | { | 2124 | { |
2125 | OPENSSL_free(ctx); | 2125 | free(ctx); |
2126 | X509err(X509_F_X509_STORE_CTX_INIT,ERR_R_MALLOC_FAILURE); | 2126 | X509err(X509_F_X509_STORE_CTX_INIT,ERR_R_MALLOC_FAILURE); |
2127 | return 0; | 2127 | return 0; |
2128 | } | 2128 | } |