mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@
|
||||||
{
|
{
|
||||||
+ #if defined(BSD) && (BSD >= 199306)
|
+ #if defined(BSD) && (BSD >= 199306)
|
||||||
+ /* Check password change and expire times before granting access */
|
+ /* 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) ||
|
+ if ((pw->pw_change && now > pw->pw_change) ||
|
||||||
+ (pw->pw_expire && now > pw->pw_expire))
|
+ (pw->pw_expire && now > pw->pw_expire))
|
||||||
|
|
Loading…
Add table
Reference in a new issue