Date: Mon, 12 Jan 2004 05:29:54 -0800 (PST) From: Jacques Vidrine <nectar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen getpwent.c Message-ID: <200401121329.i0CDTsFI056296@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@fing.edu.uy> Revision Changes Path 1.84 +1 -1 src/lib/libc/gen/getpwent.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401121329.i0CDTsFI056296>