aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-11-15 22:42:00 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-11-15 22:42:00 +0000
commit6ceeb6902a155dfa35c39a3d360736584fbefb7f (patch)
tree414badc6420598c8e62302e330f16ee827afd3eb /usr.sbin/pppd
parentcdf5e9ccb6eb735c178354b575d894b0580ee560 (diff)
Notes
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c
index b2d43f8e82ef..6d2d737a5a6f 100644
--- a/usr.sbin/pppd/auth.c
+++ b/usr.sbin/pppd/auth.c
@@ -995,7 +995,7 @@ plogin(user, passwd, msg, msglen)
#endif
memset((void *)&utmp, 0, sizeof(utmp));
- (void)time(&utmp.ut_time);
+ utmp.ut_time = time(NULL);
(void)strncpy(utmp.ut_name, user, sizeof(utmp.ut_name));
(void)strncpy(utmp.ut_host, ":PPP", sizeof(utmp.ut_host));
(void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));