From: Richard Levitte Date: Tue, 10 Dec 2002 08:28:16 +0000 (+0000) Subject: A memset() too many got converted into a OPENSSL_cleanse(). X-Git-Tag: OpenSSL_0_9_6i~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=56f940edc92c5af9958ca86772fd5f3f35813ab9;p=oweals%2Fopenssl.git A memset() too many got converted into a OPENSSL_cleanse(). PR: 393 --- diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 90b18a0464..9ad9276ff7 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -897,7 +897,7 @@ void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx) ctx->chain=NULL; } CRYPTO_free_ex_data(x509_store_ctx_method,ctx,&(ctx->ex_data)); - OPENSSL_cleanse(&ctx->ex_data,sizeof(CRYPTO_EX_DATA)); + memset(&ctx->ex_data,0,sizeof(CRYPTO_EX_DATA)); } void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, long flags)