From 9cdf87f19431b32a50b12e468cf2a9557cfc3568 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 30 May 2002 16:47:45 +0000 Subject: Check the return values where memory allocation failures may happen. PR: 49 --- crypto/evp/bio_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/evp/bio_enc.c') diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c index 05f4249458..64fb2353af 100644 --- a/crypto/evp/bio_enc.c +++ b/crypto/evp/bio_enc.c @@ -110,8 +110,8 @@ static int enc_new(BIO *bi) BIO_ENC_CTX *ctx; ctx=(BIO_ENC_CTX *)OPENSSL_malloc(sizeof(BIO_ENC_CTX)); - EVP_CIPHER_CTX_init(&ctx->cipher); if (ctx == NULL) return(0); + EVP_CIPHER_CTX_init(&ctx->cipher); ctx->buf_len=0; ctx->buf_off=0; -- cgit v1.2.3