From owner-p4-projects@FreeBSD.ORG Thu Aug 7 18:16:26 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D1E0437B404; Thu, 7 Aug 2003 18:16:25 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 705E337B401 for ; Thu, 7 Aug 2003 18:16:25 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1490B43FBF for ; Thu, 7 Aug 2003 18:16:25 -0700 (PDT) (envelope-from Hrishikesh_Dandekar@NAI.com) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h781GO0U039359 for ; Thu, 7 Aug 2003 18:16:24 -0700 (PDT) (envelope-from Hrishikesh_Dandekar@NAI.com) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h781GOvx039356 for perforce@freebsd.org; Thu, 7 Aug 2003 18:16:24 -0700 (PDT) Date: Thu, 7 Aug 2003 18:16:24 -0700 (PDT) Message-Id: <200308080116.h781GOvx039356@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to Hrishikesh_Dandekar@NAI.com using -f From: Hrishikesh Dandekar To: Perforce Change Reviews Subject: PERFORCE change 35756 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2003 01:16:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=35756 Change 35756 by hdandeka@hdandeka_yash on 2003/08/07 18:16:00 Bug fix for nfsdserver module in the trustedbsd MAC branch. Initialize the cred ptr (nd_cr) to NULL. The check for NULL ptr would fail in nfssvc_nfsd leading to a an invalid pointer reference. Affected files ... .. //depot/projects/trustedbsd/mac/sys/nfsserver/nfs_srvsock.c#12 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/nfsserver/nfs_srvsock.c#12 (text+ko) ==== @@ -670,6 +670,7 @@ nd->nd_md = nd->nd_mrep = m; nd->nd_nam2 = nam; nd->nd_dpos = mtod(m, caddr_t); + nd->nd_cr = NULL; error = nfs_getreq(nd, nfsd, TRUE); if (error) { if (nam) {