From 7698a76cf4983fe69944a810305183f1fe6cc031 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 21 Mar 2011 22:02:16 +0100 Subject: Clear the whole MD5 context. --- modules/pam_unix/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_unix/md5.c') diff --git a/modules/pam_unix/md5.c b/modules/pam_unix/md5.c index d88d6810..94d1c9da 100644 --- a/modules/pam_unix/md5.c +++ b/modules/pam_unix/md5.c @@ -148,7 +148,7 @@ void MD5Name(MD5Final)(unsigned char digest[16], struct MD5Context *ctx) MD5Name(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 -- cgit v1.2.3