Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Oct 2006 17:32:01 GMT
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        ru@FreeBSD.org, freebsd-bugs@FreeBSD.org, csjp@FreeBSD.org
Subject:   Re: bin/103873: login(1) SEGFAULT on unsuccessful login
Message-ID:  <200610011732.k91HW1OF004225@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610011732.k91HW1OF004225>