summaryrefslogtreecommitdiff
path: root/modules/pam_namespace/md5.c
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2011-03-18 23:15:54 +0000
committerTomas Mraz <tm@t8m.info>2011-03-18 23:15:54 +0000
commitf052833acfa231b68d024fef7637883d81400e42 (patch)
tree6934623919088182297c1f8ee52e03cbe6ba9962 /modules/pam_namespace/md5.c
parent24557b231f549dc6511d62f5ad35d15d95e1f44f (diff)
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2011-03-18 Tomas Mraz <tm@t8m.info> * modules/pam_namespace/md5.c (MD5Final): Clear the whole ctx. * modules/pam_namespace/pam_namespace.c (del_polydir): Guard for NULL poly. (protect_dir): Guard for -1 passing to close(). (ns_setup): Likewise. (pam_sm_open_session): Correctly test for SELinux enabled flag.
Diffstat (limited to 'modules/pam_namespace/md5.c')
-rw-r--r--modules/pam_namespace/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_namespace/md5.c b/modules/pam_namespace/md5.c
index 3094a130..c79fb357 100644
--- a/modules/pam_namespace/md5.c
+++ b/modules/pam_namespace/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 */
}
/* The four core functions - F1 is optimized somewhat */