Commit 06e35a77 authored by Alexandre Julliard's avatar Alexandre Julliard

Removed wrong memset calls.

parent 6c6f71c8
......@@ -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 */
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment