PERFORCE change 49672 for review

Robert Watson rwatson at FreeBSD.org
Thu Mar 25 16:04:49 GMT 2004


http://perforce.freebsd.org/chv.cgi?CH=49672

Change 49672 by rwatson at rwatson_tislabs on 2004/03/25 08:04:30

	Correct bugs in memory allocation introduced in port from Darwin.
	
	Submitted by:	"Ilmar S. Habibulin" <ilmar at watson.org>

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.
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list