summaryrefslogtreecommitdiff
path: root/modules/pam_unix
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2011-03-21 22:02:16 +0100
committerTomas Mraz <tmraz@fedoraproject.org>2011-03-21 22:02:16 +0100
commit7698a76cf4983fe69944a810305183f1fe6cc031 (patch)
tree662ce757dbdfc526818fe3ee6c29e72271ce418b /modules/pam_unix
parentf052833acfa231b68d024fef7637883d81400e42 (diff)
Clear the whole MD5 context.
Diffstat (limited to 'modules/pam_unix')
-rw-r--r--modules/pam_unix/md5.c2
1 files changed, 1 insertions, 1 deletions
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