From dee305230acb2ab75a9962c59c530831c749331f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 1 Jul 2011 22:55:06 -0700 Subject: [PATCH] ITS#6982 fix md5 memset invocation --- libraries/liblutil/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblutil/md5.c b/libraries/liblutil/md5.c index 0ad85cc898..12bb58b68c 100644 --- a/libraries/liblutil/md5.c +++ b/libraries/liblutil/md5.c @@ -185,7 +185,7 @@ lutil_MD5Final( unsigned char *digest, struct lutil_MD5Context *ctx ) putu32(ctx->buf[1], digest + 4); putu32(ctx->buf[2], digest + 8); putu32(ctx->buf[3], digest + 12); - memset(ctx, '\0', sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, '\0', sizeof(*ctx)); /* In case it's sensitive */ } #ifndef ASM_MD5 -- 2.39.5