* lib/pwio.c, lib/shadowio.c, lib/groupio.c, lib/sgroupio.c: Fill

the password fields with zeros before they are freed.
This commit is contained in:
nekral-guest
2009-04-20 11:29:17 +00:00
parent bf66861e3f
commit 2ce68e8aec
5 changed files with 12 additions and 3 deletions

View File

@ -102,6 +102,7 @@ static void gshadow_free (void *ent)
struct sgrp *sg = ent;
free (sg->sg_name);
memzero (sg->sg_passwd, strlen (sg->sg_passwd));
free (sg->sg_passwd);
while (NULL != *(sg->sg_adm)) {
free (*(sg->sg_adm));