aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix/md5_crypt.c
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2023-09-11 14:10:02 -0600
committerSam Hartman <hartmans@debian.org>2023-09-11 14:10:02 -0600
commit42408448b00a7a2150b5853dc4f63296b6827e0e (patch)
treef2d801e728b41563b77ebe89a3d560319ff37d31 /modules/pam_unix/md5_crypt.c
parentb99a4f53dcf4725e4b3b861fd8a28c0156a8a147 (diff)
parente9aa2ef52a423a3a33299bf7e8715eb5bd76ea67 (diff)
downloadpam-42408448b00a7a2150b5853dc4f63296b6827e0e.tar.gz
pam-42408448b00a7a2150b5853dc4f63296b6827e0e.tar.bz2
pam-42408448b00a7a2150b5853dc4f63296b6827e0e.zip
Update upstream source from tag 'upstream/1.5.3'
Update to upstream version '1.5.3' with Debian dir 6b9d9dfb8a4ca02d4557097ee59960e72a6a4a29
Diffstat (limited to 'modules/pam_unix/md5_crypt.c')
-rw-r--r--modules/pam_unix/md5_crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_unix/md5_crypt.c b/modules/pam_unix/md5_crypt.c
index 94f7b434..ed5ecda4 100644
--- a/modules/pam_unix/md5_crypt.c
+++ b/modules/pam_unix/md5_crypt.c
@@ -87,7 +87,7 @@ char *MD5Name(crypt_md5)(const char *pw, const char *salt)
MD5Name(MD5Update)(&ctx,(unsigned const char *)final,pl>16 ? 16 : pl);
/* Don't leave anything around in vm they could use. */
- memset(final, 0, sizeof final);
+ pam_overwrite_array(final);
/* Then something really weird... */
for (j = 0, i = strlen(pw); i; i >>= 1)
@@ -151,7 +151,7 @@ char *MD5Name(crypt_md5)(const char *pw, const char *salt)
*p = '\0';
/* Don't leave anything around in vm they could use. */
- memset(final, 0, sizeof final);
+ pam_overwrite_array(final);
return passwd;
}