From b4008a52254debf3a2c348c9e4a710d3bb8dc8ec Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Fri, 7 Mar 2014 00:02:32 +0000 Subject: Merging compiler warning fix. Patch by Mark H Weaver . --- lib/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/md5.c') diff --git a/lib/md5.c b/lib/md5.c index 355f5495..499dbfdd 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -159,7 +159,7 @@ void md5_finish(struct MD5Context *ctx, md5_byte_t digest[16]) ctx->buf[2] = cvt32(ctx->buf[2]); ctx->buf[3] = cvt32(ctx->buf[3]); 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 */ } void md5_finish_ascii(struct MD5Context *context, char *ascii) -- cgit v1.2.3