Fix random memory overwrite bug

This commit is contained in:
Paul Traina 1996-09-30 19:19:23 +00:00
parent a5359be788
commit a32537ed35
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3900

View File

@ -152,7 +152,7 @@
{
+ #if defined(BSD) && (BSD >= 199306)
+ /* Check password change and expire times before granting access */
+ time_t now = time();
+ time_t now = time((time_t *) NULL);
+
+ if ((pw->pw_change && now > pw->pw_change) ||
+ (pw->pw_expire && now > pw->pw_expire))