diff --git a/dlls/advapi32/crypt_md4.c b/dlls/advapi32/crypt_md4.c index 1eb8e3ed243..4c3f9bb92db 100644 --- a/dlls/advapi32/crypt_md4.c +++ b/dlls/advapi32/crypt_md4.c @@ -176,11 +176,7 @@ VOID WINAPI MD4Final( MD4_CTX *ctx ) MD4Transform( ctx->buf, (unsigned int *)ctx->in ); byteReverse( (unsigned char *)ctx->buf, 4 ); - - if ( ctx->digest != NULL ) - memcpy( ctx->digest, ctx->buf, 16 ); - - memset( ctx, 0, sizeof(ctx) ); /* In case it's sensitive */ + memcpy( ctx->digest, ctx->buf, 16 ); } /* The three core functions */ diff --git a/dlls/advapi32/crypt_md5.c b/dlls/advapi32/crypt_md5.c index 37c054062d8..96ff048967d 100644 --- a/dlls/advapi32/crypt_md5.c +++ b/dlls/advapi32/crypt_md5.c @@ -176,11 +176,7 @@ VOID WINAPI MD5Final( MD5_CTX *ctx ) MD5Transform( ctx->buf, (unsigned int *)ctx->in ); byteReverse( (unsigned char *)ctx->buf, 4 ); - - if ( ctx->digest != NULL ) - memcpy( ctx->digest, ctx->buf, 16 ); - - memset( ctx, 0, sizeof(ctx) ); /* In case it's sensitive */ + memcpy( ctx->digest, ctx->buf, 16 ); } /* The four core functions - F1 is optimized somewhat */