Skip to content

Commit

Permalink
fix the clearing of context buffer path by Stefan Farfeleder
Browse files Browse the repository at this point in the history
  • Loading branch information
tjko committed Dec 25, 2012
1 parent ab1a0e1 commit cb36b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion md5.c
Expand Up @@ -167,7 +167,7 @@ MD5Final(digest, ctx)
MD5Transform(ctx->buf, (uint32 *)ctx->in);
byteReverse((unsigned char *)ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
}

#ifndef ASM_MD5
Expand Down

0 comments on commit cb36b72

Please sign in to comment.