Date: Tue, 28 Mar 2006 15:30:42 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/login login.c Message-ID: <200603281530.k2SFUgBL035166@repoman.freebsd.org>
index | next in thread | raw e-mail
cognet 2006-03-28 15:30:42 UTC
FreeBSD src repository
Modified files:
usr.bin/login login.c
Log:
Don't call audit_logout() if pwd is NULL, as audit_logout() attempts to
dereference it.
This will happen if we ^D at the Login: prompt without having provided a
valid login before.
Set pwd to NULL on bad login attempts to prevent audit_logout() from being
called for a user which didn't actually log on.
Reported by: Jerome Magnin jethro at docisland dot org
Revision Changes Path
1.101 +5 -2 src/usr.bin/login/login.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603281530.k2SFUgBL035166>
