bin/103873: login(1) SEGFAULT on unsuccessful login

Ruslan Ermilov ru at FreeBSD.org
Sun Oct 1 10:32:01 PDT 2006


Synopsis: login(1) SEGFAULT on unsuccessful login

Responsible-Changed-From-To: freebsd-bugs->csjp
Responsible-Changed-By: ru
Responsible-Changed-When: Sun Oct 1 17:29:34 UTC 2006
Responsible-Changed-Why: 
Christian did the MFC so he eats all the bugs now.  :-)

The fix proposed in the PR should be replaced by simply MFCing
rev. 1.101 to login.c:

: date: 2006/03/28 15:30:42;  author: cognet;  state: Exp;  lines: +5 -2
: 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

http://www.freebsd.org/cgi/query-pr.cgi?pr=103873


More information about the freebsd-bugs mailing list