Loading crypto/evp/digest.c +6 −4 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) { if(ctx->digest != type) { if(ctx->md_data != NULL) OPENSSL_free(ctx->md_data); ctx->digest=type; #ifdef CRYPTO_MDEBUG Loading Loading @@ -155,9 +156,10 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) * because sometimes only copies of the context are ever finalised. */ if(ctx->md_data) { memset(ctx->md_data,0,ctx->digest->ctx_size); OPENSSL_free(ctx->md_data); } memset(ctx,'\0',sizeof *ctx); return 1; Loading Loading
crypto/evp/digest.c +6 −4 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) { if(ctx->digest != type) { if(ctx->md_data != NULL) OPENSSL_free(ctx->md_data); ctx->digest=type; #ifdef CRYPTO_MDEBUG Loading Loading @@ -155,9 +156,10 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) * because sometimes only copies of the context are ever finalised. */ if(ctx->md_data) { memset(ctx->md_data,0,ctx->digest->ctx_size); OPENSSL_free(ctx->md_data); } memset(ctx,'\0',sizeof *ctx); return 1; Loading