cvs commit: src/lib/libc/gen getpwent.c

Jacques Vidrine nectar at FreeBSD.org
Mon Jan 12 05:29:57 PST 2004


nectar      2004/01/12 05:29:54 PST

  FreeBSD src repository

  Modified files:
    lib/libc/gen         getpwent.c 
  Log:
  Fix a bug that could result in a null pointer dereference in
  getpwent(3) or getpwuid(3) when using NIS adjunct maps.  The bug was
  present in the internal `nis_passwd' function.  The lookup in the
  adjunct map used the name passed into `nis_passwd', however no name
  was of course supplied by getpwent or getpwuid.  Correctly use the
  name from the `struct pwd' that was found instead.
  
  PR:             bin/59962
  Submitted by:   Gabriel Gomez <ggomez at fing.edu.uy>
  
  Revision  Changes    Path
  1.84      +1 -1      src/lib/libc/gen/getpwent.c


More information about the cvs-src mailing list