From owner-p4-projects@FreeBSD.ORG Thu Mar 25 08:04:50 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0F20916A4D5; Thu, 25 Mar 2004 08:04:50 -0800 (PST) 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 D96AF16A4D1 for ; Thu, 25 Mar 2004 08:04:49 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D122443D3F for ; Thu, 25 Mar 2004 08:04:49 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2PG4nGe059431 for ; Thu, 25 Mar 2004 08:04:49 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2PG4n5S059428 for perforce@freebsd.org; Thu, 25 Mar 2004 08:04:49 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 25 Mar 2004 08:04:49 -0800 (PST) Message-Id: <200403251604.i2PG4n5S059428@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Subject: PERFORCE change 49672 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: Thu, 25 Mar 2004 16:04:50 -0000 http://perforce.freebsd.org/chv.cgi?CH=49672 Change 49672 by rwatson@rwatson_tislabs on 2004/03/25 08:04:30 Correct bugs in memory allocation introduced in port from Darwin. Submitted by: "Ilmar S. Habibulin" Affected files ... .. //depot/projects/trustedbsd/audit2/sys/security/audit/audit.c#17 edit Differences ... ==== //depot/projects/trustedbsd/audit2/sys/security/audit/audit.c#17 (text+ko) ==== @@ -1393,7 +1393,7 @@ } if (*pathp == NULL) - pathp = malloc(MAXPATHLEN, M_AUDIT, M_WAITOK); + *pathp = malloc(MAXPATHLEN, M_AUDIT, M_WAITOK); canon_path(td, upath, *pathp); @@ -1456,7 +1456,7 @@ } if (*pathp == NULL) - pathp = malloc(MAXPATHLEN, M_AUDIT, M_WAITOK); + *pathp = malloc(MAXPATHLEN, M_AUDIT, M_WAITOK); /* * Copy the path looked up by the vn_getpath() function.