From owner-cvs-all@FreeBSD.ORG Mon Jan 12 05:29:57 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 251DB16A4CE; Mon, 12 Jan 2004 05:29:57 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA22843D49; Mon, 12 Jan 2004 05:29:54 -0800 (PST) (envelope-from nectar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0CDTs0B056297; Mon, 12 Jan 2004 05:29:54 -0800 (PST) (envelope-from nectar@repoman.freebsd.org) Received: (from nectar@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0CDTsFI056296; Mon, 12 Jan 2004 05:29:54 -0800 (PST) (envelope-from nectar) Message-Id: <200401121329.i0CDTsFI056296@repoman.freebsd.org> From: Jacques Vidrine Date: Mon, 12 Jan 2004 05:29:54 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gen getpwent.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 13:29:57 -0000 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 Revision Changes Path 1.84 +1 -1 src/lib/libc/gen/getpwent.c