Fix random memory overwrite bug
This commit is contained in:
parent
a5359be788
commit
a32537ed35
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3900
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user