cvs commit: src/usr.bin/login login.c

Olivier Houchard cognet at FreeBSD.org
Tue Mar 28 15:30:45 UTC 2006


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


More information about the cvs-all mailing list